summaryrefslogtreecommitdiff
path: root/extras
diff options
context:
space:
mode:
authorBryan Bishop <kanzure@gmail.com>2013-05-12 07:53:46 -0700
committerBryan Bishop <kanzure@gmail.com>2013-05-12 07:53:46 -0700
commit35d77a29885ccdbcde4350f59c93b6afe010b5f3 (patch)
treed2e21aa8ba8ca184c6a2205e11e5256ec944a45e /extras
parentf5ec58bea0f98675681f0e69d2e3cd8614cb7be9 (diff)
parent4b4445138d62fd072552344568938f96344f9c09 (diff)
Merge pull request #132 from yenatch/master
map groups + gfx.py fix
Diffstat (limited to 'extras')
-rw-r--r--extras/gfx.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/extras/gfx.py b/extras/gfx.py
index 8b9a66ff1..2c98a5ab2 100644
--- a/extras/gfx.py
+++ b/extras/gfx.py
@@ -1440,7 +1440,7 @@ def mass_to_colored_png(debug=False):
to_png(os.path.join(root, name), None, os.path.join(root, os.path.splitext(name)[0]+'.pal'))
else:
to_png(os.path.join(root, name))
- os.touch(os.path.join(root, name))
+ os.utime(os.path.join(root, name), None)
# only monster and trainer pics for now
for root, dirs, files in os.walk('../gfx/pics/'):
@@ -1451,14 +1451,14 @@ def mass_to_colored_png(debug=False):
to_png(os.path.join(root, name), None, os.path.join(root, 'normal.pal'))
else:
to_png(os.path.join(root, name))
- os.touch(os.path.join(root, name))
+ os.utime(os.path.join(root, name), None)
for root, dirs, files in os.walk('../gfx/trainers/'):
for name in files:
if debug: print os.path.splitext(name), os.path.join(root, name)
if os.path.splitext(name)[1] == '.2bpp':
to_png(os.path.join(root, name), None, os.path.join(root, name[:-5]+'.pal'))
- os.touch(os.path.join(root, name))
+ os.utime(os.path.join(root, name), None)
def mass_decompress(debug=False):
@@ -1483,7 +1483,7 @@ def mass_decompress(debug=False):
else:
with open(os.path.join(root, name), 'rb') as lz: de = Decompressed(lz.read())
to_file(os.path.join(root, os.path.splitext(name)[0]+'.2bpp'), de.output)
- os.touch(os.path.join(root, name))
+ os.utime(os.path.join(root, name), None)
def append_terminator_to_lzs(directory):
# fix lzs that were extracted with a missing terminator