Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
[Question] Output of file(1) is not always consistent #26
I am not sure if this is a
However the files work regardless in
Any ideas why this is happening? Maybe this could be improved in
Well, this is an (incorrect) assumption of
It assumes that the block_size at offset 0x10 is ALWAYS 0x0800 for non-Wii CSO. PSP CFW only supports 0x800 block sizes, so this is a decent assumption for PSP games. However, PPSSPP and PS2 emulators support larger block sizes. maxcso has the following behavior:
That said, Atelier Iris 1 is larger than 2 GB, so for me it uses the larger default size. That means either maxcso wasn't used, or an older version before that default was used.
If you want
I can also reproduce this with PSP games.
I also found this interesting.
The English fan translation was patched using the above Japanese iso.
Were those created with maxcso? Maybe there's somewhere else it's validating bytes in the file incorrectly - I may not be reading the magic bytes config entirely properly.
You can view the first few bytes like this:
xxd -l 24 -e "7th Dragon 2020-II (English v091).cso"
(WARNING: don't pass two filenames.)
For example, you might see:
Actually, this file is recognized by
I was really looking at this, basically (and some other versions of it for other platforms):