mirror of
https://github.com/pret/pokemon-reverse-engineering-tools.git
synced 2026-03-21 17:24:42 -05:00
gfx.py: PNGs should be opened in binary mode
PNG files were opened as text files, thus the signature 0x0D 0x0A bytes were swallowed depending on OS. Signed-off-by: Tauwasser <tauwasser@gmail.com>
This commit is contained in:
parent
2ae1ae2f19
commit
e46b63cca2
|
|
@ -634,7 +634,7 @@ def png_to_2bpp(filein, **kwargs):
|
|||
arguments.update(kwargs)
|
||||
|
||||
if type(filein) is str:
|
||||
filein = open(filein)
|
||||
filein = open(filein, 'rb')
|
||||
|
||||
assert type(filein) is file
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user