mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-03 22:28:46 +00:00
Fix image.which_bytes
Invert test in `which_bytes` to fix Softimage PIC detection. Fixes #4429.
This commit is contained in:
committed by
flysand7
parent
5faefac106
commit
1df246664f
@@ -193,7 +193,7 @@ which_bytes :: proc(data: []byte) -> Which_File_Type {
|
|||||||
return .HDR
|
return .HDR
|
||||||
case s[:4] == "\x38\x42\x50\x53":
|
case s[:4] == "\x38\x42\x50\x53":
|
||||||
return .PSD
|
return .PSD
|
||||||
case s[:4] != "\x53\x80\xF6\x34" && s[88:92] == "PICT":
|
case s[:4] == "\x53\x80\xF6\x34" && s[88:92] == "PICT":
|
||||||
return .PIC
|
return .PIC
|
||||||
case s[:4] == "\x69\x63\x6e\x73":
|
case s[:4] == "\x69\x63\x6e\x73":
|
||||||
return .ICNS
|
return .ICNS
|
||||||
|
|||||||
Reference in New Issue
Block a user