rickomax / psxprev

PSXPREV - Playstation (PSX) Files Previewer/Extractor
BSD 2-Clause "Simplified" License
200 stars 10 forks source link

MOD reader fixes #100

Closed trigger-segfault closed 1 year ago

trigger-segfault commented 1 year ago

This PR fixes reader issues with MOD (Croc) model files. All supplied MOD files used for testing now read without error. RGB color is now used when the texture face flag is unset, and collision data is skipped if the flag for that data section is present. Additionally, zero countVerts is now allowed (while continuing to read the rest of the sub-model, so that we're on the correct reader offset for the next sub-model).