ref: 3a0e80932ec11494407ea5a3aa7724007b71502b
parent: 5feb5fd208d68a3d8f4d0ce4d925512a8fbe3b97
author: yenatch <[email protected]>
date: Thu May 16 21:58:42 EDT 2013
fix data-handling errors in gfx.py
--- a/extras/gfx.py
+++ b/extras/gfx.py
@@ -189,6 +189,7 @@
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 @@
"""
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 @@
elif args.cmd == 'mass-decompress':
mass_decompress()
if debug: print 'decompressed known gfx to pokecrystal/gfx/!'
-