diff options
author | yenatch <yenatch@gmail.com> | 2013-05-11 02:09:49 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-05-11 13:39:40 -0400 |
commit | b954746344987eb2926227bd96a8c5d77d7c80b1 (patch) | |
tree | 9dbab21318c010f968d35595278cf2c9155fbf6a /gfx.py | |
parent | e6c3ea60863ed5256c50856a285f2ec152b7138e (diff) |
touch graphic files during decmp so make doesnt try to replace them
original-commit-id: a85077eb4f8a153cbe8fd00f59943b715536045e
Diffstat (limited to 'gfx.py')
-rw-r--r-- | gfx.py | 5 |
1 files changed, 5 insertions, 0 deletions
@@ -1440,6 +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)) # only monster and trainer pics for now for root, dirs, files in os.walk('../gfx/pics/'): @@ -1450,11 +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)) + 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)) def mass_decompress(debug=False): @@ -1479,6 +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)) def append_terminator_to_lzs(directory): # fix lzs that were extracted with a missing terminator |