diff options
author | Andrei Karas <akaras@inbox.ru> | 2011-04-27 02:05:04 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2011-04-27 02:05:04 +0300 |
commit | 126ca89580666d64b005ec05226b1a826736ccc4 (patch) | |
tree | 108bf7cd0f0046c8732b03f1b8e8124dd80aab9b /testxml | |
parent | 5756751493ac58a676195112efc4794cca97275a (diff) | |
download | evol-tools-126ca89580666d64b005ec05226b1a826736ccc4.tar.gz evol-tools-126ca89580666d64b005ec05226b1a826736ccc4.tar.bz2 evol-tools-126ca89580666d64b005ec05226b1a826736ccc4.tar.xz evol-tools-126ca89580666d64b005ec05226b1a826736ccc4.zip |
Fixing checking music dir.
Diffstat (limited to 'testxml')
-rwxr-xr-x | testxml/testxml.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py index a382000..33a3deb 100755 --- a/testxml/testxml.py +++ b/testxml/testxml.py @@ -665,9 +665,10 @@ def testImageFile(file, fullPath, sz, src, iserr): return sizes -def testSound(file): +def testSound(file, sfxDir): fullPath = parentDir + "/" + sfxDir + file if not os.path.isfile(fullPath) or os.path.exists(fullPath) == False: + print "errin:" + fullPath showMsgFile(file, "sound file not found", True) return try: @@ -953,7 +954,7 @@ def testSounds(id, node, type): print "error: incorrect sound event name " + event + " in id=" + id errors = errors + 1 - testSound(sound.childNodes[0].data) + testSound(sound.childNodes[0].data, sfxDir) def testNpcs(file): global warnings, errors @@ -1471,7 +1472,7 @@ def testMaps(dir): def testDefaultFiles(): print "Checking defult files" - testSound(attackSfxFile) + testSound(attackSfxFile, sfxDir) testSprite("0", spriteErrorFile, 0, True, True) testParticle("0", particlesDir + levelUpEffectFile, "levelUpEffectFile") testParticle("0", particlesDir + portalEffectFile, "portalEffectFile") @@ -1573,7 +1574,7 @@ def testSoundsDir(dir, sfxDir): testSoundsDir(dir + file + "/", sfxDir) elif filtogg.search(file): fullName = dir + file - testSound(dir + file) + testSound(dir + file, sfxDir) def haveXml(dir): |