diff options
Diffstat (limited to 'hercules')
l--------- | hercules/extractmaps.py (renamed from hercules/cachetotmx.py) | 0 | ||||
l--------- | hercules/listmaps.py (renamed from hercules/extract.py) | 0 | ||||
l--------- | hercules/mapstotmx.py (renamed from hercules/list.py) | 0 | ||||
-rwxr-xr-x | hercules/maptool.py | 18 |
4 files changed, 9 insertions, 9 deletions
diff --git a/hercules/cachetotmx.py b/hercules/extractmaps.py index df2b3e6..df2b3e6 120000 --- a/hercules/cachetotmx.py +++ b/hercules/extractmaps.py diff --git a/hercules/extract.py b/hercules/listmaps.py index df2b3e6..df2b3e6 120000 --- a/hercules/extract.py +++ b/hercules/listmaps.py diff --git a/hercules/list.py b/hercules/mapstotmx.py index df2b3e6..df2b3e6 120000 --- a/hercules/list.py +++ b/hercules/mapstotmx.py diff --git a/hercules/maptool.py b/hercules/maptool.py index 375a25d..51ff750 100755 --- a/hercules/maptool.py +++ b/hercules/maptool.py @@ -20,12 +20,12 @@ import struct import shutil def detectCommand(): - if sys.argv[0][-8:] == "/list.py": - return "list" - elif sys.argv[0][-11:] == "/extract.py": - return "extract" - elif sys.argv[0][-14:] == "/cachetotmx.py": - return "cachetotmx" + if sys.argv[0][-12:] == "/listmaps.py": + return "listmaps" + elif sys.argv[0][-15:] == "/extractmaps.py": + return "extractmaps" + elif sys.argv[0][-13:] == "/mapstotmx.py": + return "mapstotmx" return "help" def makeDir(path): @@ -161,11 +161,11 @@ def readMapCache(path, cmd): mapsCount = readInt16(f) print "Maps count: " + str(mapsCount) readInt16(f) # padding - if cmd == "list": + if cmd == "listmaps": listMapCache(f, mapsCount) - elif cmd == "extract": + elif cmd == "extractmaps": extractMaps(f, mapsCount) - elif cmd == "cachetotmx": + elif cmd == "mapstotmx": covertToTmx(f, mapsCount) |