summaryrefslogtreecommitdiff
path: root/hercules/code/serverutils.py
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-29 12:02:21 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-29 12:02:21 +0300
commit7ee8060460c63f0f4aaae338c99686f38edff2a0 (patch)
tree06b8a5319e986e4015e9cfc38e0091ae97585ca3 /hercules/code/serverutils.py
parentfd60b7426c0191d7275272aec604d272fbc3c420 (diff)
downloadevol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.tar.gz
evol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.tar.bz2
evol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.tar.xz
evol-tools-7ee8060460c63f0f4aaae338c99686f38edff2a0.zip
hercules: start adding support for conversion from tmwa data.
Diffstat (limited to 'hercules/code/serverutils.py')
-rw-r--r--hercules/code/serverutils.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/hercules/code/serverutils.py b/hercules/code/serverutils.py
new file mode 100644
index 0000000..c377bd7
--- /dev/null
+++ b/hercules/code/serverutils.py
@@ -0,0 +1,12 @@
+# -*- coding: utf8 -*-
+#
+# Copyright (C) 2014 Evol Online
+# Author: Andrei Karas (4144)
+
+import os
+
+def detectServerType():
+ if os.path.exists("oldserverdata/news.d"):
+ return "tmw"
+ else:
+ return "evol"