diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-19 01:23:23 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-19 01:23:23 +0300 |
commit | 4aa08b0c7eb36da6a4d93a52383ab533fadc2f06 (patch) | |
tree | f0630f4a6ffb784a31c623f33b670708c62b1419 /testxml | |
parent | 9ede40df1b21182ac3bc1a6b40b30659d05efdff (diff) | |
download | evol-tools-4aa08b0c7eb36da6a4d93a52383ab533fadc2f06.tar.gz evol-tools-4aa08b0c7eb36da6a4d93a52383ab533fadc2f06.tar.bz2 evol-tools-4aa08b0c7eb36da6a4d93a52383ab533fadc2f06.tar.xz evol-tools-4aa08b0c7eb36da6a4d93a52383ab533fadc2f06.zip |
testxml: remove legacy path.xml parameters check.
Diffstat (limited to 'testxml')
-rwxr-xr-x | testxml/testxml.py | 29 |
1 files changed, 2 insertions, 27 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index d8987ed..ad8601f 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -33,15 +33,12 @@ particlesDir = "graphics/particles/" sfxDir = "sfx/" musicDir = "music/" mapsDir = "maps/" -attackSfxFile = "fist-swish.ogg" spriteErrorFile = "error.xml" levelUpEffectFile = "levelup.particle.xml" portalEffectFile = "warparea.particle.xml" minimapsDir = "graphics/minimaps/" wallpapersDir = "graphics/images/" wallpaperFile = "login_wallpaper.png" -newQuestSfx = "" -completeQuestSfx = "" errors = 0 warnings = 0 @@ -174,9 +171,9 @@ def checkFilePermission(fullName): def loadPaths(): - global warnings, iconsDir, spritesDir, sfxDir, particlesDir, mapsDir, attackSfxFile, spriteErrorFile, \ + global warnings, iconsDir, spritesDir, sfxDir, particlesDir, mapsDir, spriteErrorFile, \ levelUpEffectFile, portalEffectFile, minimapsDir, wallpapersDir, walpaperFile, \ - musicDir, newQuestSfx, completeQuestSfx + musicDir try: dom = minidom.parse(parentDir + "/paths.xml") for node in dom.getElementsByTagName("option"): @@ -203,8 +200,6 @@ def loadPaths(): 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": spriteErrorFile = node.attributes["value"].value elif node.attributes["name"].value == "levelUpEffectFile": @@ -219,10 +214,6 @@ def loadPaths(): wallpaperFile = node.attributes["value"].value elif node.attributes["name"].value == "music": musicDir = node.attributes["value"].value - elif node.attributes["name"].value == "newQuestSfx": - newQuestSfx = node.attributes["value"].value - elif node.attributes["name"].value == "completeQuestSfx": - completeQuestSfx = node.attributes["value"].value except: print "warn: paths.xml not found" @@ -1987,22 +1978,6 @@ def testDefaultFiles(): testDirExists(musicDir) testDirExists(wallpapersDir) - if attackSfxFile == "": - print "warn: parameter attackSfxFile in paths.xml is incorrect" - warnings = warnings + 1 - else: - testSound(attackSfxFile, sfxDir, "attackSfxFile") - if newQuestSfx == "": - print "warn: parameter newQuestSfx in paths.xml is incorrect" - warnings = warnings + 1 - else: - testSound(newQuestSfx, sfxDir, "newQuestsSfx") - if completeQuestSfx == "": - print "warn: parameter completeQuestSfx in paths.xml is incorrect" - warnings = warnings + 1 - else: - testSound(completeQuestSfx, sfxDir, "completeQuestSfx") - testSprite("0", spriteErrorFile, 0, True, "", True) testParticle("0", particlesDir + levelUpEffectFile, "levelUpEffectFile") testParticle("0", particlesDir + portalEffectFile, "portalEffectFile") |