diff options
author | yenatch <yenatch@gmail.com> | 2013-05-17 01:58:42 -0400 |
---|---|---|
committer | yenatch <yenatch@gmail.com> | 2013-05-17 01:59:23 -0400 |
commit | 0cf529cd7da9094acd4d3bfd1c0926f62facccd9 (patch) | |
tree | 2dcc01ec06887ee19fae65227384e64c8a112f99 /gfx.py | |
parent | 98379e786fa81cfa9ad229eaee40185fa2717971 (diff) |
fix data-handling errors in gfx.py
original-commit-id: 3a0e80932ec11494407ea5a3aa7724007b71502b
Diffstat (limited to 'gfx.py')
-rw-r--r-- | gfx.py | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -189,6 +189,7 @@ class Compressed: def __init__(self, image = None, mode = 'horiz', size = None): assert image, 'need something to compress!' + image = list(image) self.image = image self.pic = [] self.animtiles = [] @@ -1503,7 +1504,7 @@ def lz_to_png_by_file(filename): """ assert filename[-3:] == ".lz" lz_data = open(filename, "rb").read() - bpp = Decompressed(lz).output + bpp = Decompressed(lz_data).output bpp_filename = filename.replace(".lz", ".2bpp") to_file(bpp_filename, bpp) to_png(bpp_filename) @@ -1619,5 +1620,4 @@ if __name__ == "__main__": elif args.cmd == 'mass-decompress': mass_decompress() if debug: print 'decompressed known gfx to pokecrystal/gfx/!' - |