Skip to content

Commit

Permalink
fix png detect logic bug
Browse files Browse the repository at this point in the history
  • Loading branch information
redsuns-chan committed Jul 22, 2022
1 parent 7e8cb35 commit 61161d0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sdgo-texture-extractor.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ def extract_texture(file_name):
# detect type
if fhex.startswith("424D"):
found_type = "bmp"
elif fhex.endswith("89504E47"):
elif fhex.startswith("89504E47"):
found_type = "png"
elif fhex.endswith("54525545564953494F4E2D5846494C452E00"):
found_type = "tga"
Expand Down

0 comments on commit 61161d0

Please sign in to comment.