From 4d992247afa0895b6dafb357ae28ead68f359d88 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Mon, 11 Jun 2012 02:52:15 +0300 Subject: testxml: add check for default paths. --- testxml/testxml.py | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'testxml/testxml.py') 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": -- cgit v1.2.3-70-g09d2