summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2012-06-11 02:52:15 +0300
committerAndrei Karas <akaras@inbox.ru>2012-06-11 02:52:15 +0300
commit4d992247afa0895b6dafb357ae28ead68f359d88 (patch)
tree13262a6bbbb4068182b7f1a7a742a8735a576df1 /testxml
parent1cb35c2d516b324506a074a2b2c2f180e372bfe7 (diff)
downloadevol-tools-4d992247afa0895b6dafb357ae28ead68f359d88.tar.gz
evol-tools-4d992247afa0895b6dafb357ae28ead68f359d88.tar.bz2
evol-tools-4d992247afa0895b6dafb357ae28ead68f359d88.tar.xz
evol-tools-4d992247afa0895b6dafb357ae28ead68f359d88.zip
testxml: add check for default paths.
Diffstat (limited to 'testxml')
-rwxr-xr-xtestxml/testxml.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 2d13fdb..7f67c17 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -163,14 +163,27 @@ def loadPaths():
for node in dom.getElementsByTagName("option"):
if node.attributes["name"].value == "itemIcons":
iconsDir = node.attributes["value"].value
+ if iconsDir != "graphics/items/":
+ print "warn: itemIcons path has not default value."\
+ " Will be incampatible with old clients."
elif node.attributes["name"].value == "sprites":
spritesDir = node.attributes["value"].value
+ if spritesDir != "graphics/sprites/":
+ print "warn: sprites path has not default value."\
+ " Will be incampatible with old clients."
elif node.attributes["name"].value == "sfx":
sfxDir = node.attributes["value"].value
+
elif node.attributes["name"].value == "particles":
particlesDir = node.attributes["value"].value
+ if particlesDir != "graphics/particles/":
+ print "warn: particles path has not default value."\
+ " Will be incampatible with old clients."
elif node.attributes["name"].value == "maps":
mapsDir = node.attributes["value"].value
+ if mapsDir != "maps/":
+ print "warn: maps path has not default value."\
+ " Will be incampatible with old clients."
elif node.attributes["name"].value == "attackSfxFile":
attackSfxFile = node.attributes["value"].value
elif node.attributes["name"].value == "spriteErrorFile":