summaryrefslogtreecommitdiff
path: root/hercules/code/serverutils.py
diff options
context:
space:
mode:
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..39a283e
--- /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/world/map/news.d"):
+ return "tmw"
+ else:
+ return "evol"