Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.Sign up
Reader: Handle corrupted chunks better #249
Some games in #246 have corrupted chunks that liblcf can't handle. One example animation chunk from Devil and Angel is not 0 terminated, causing liblcf to continue reading past the end of the chunk and getting confused.
rm2k/3 is able to run these games, so it's a compatibility issue.
Make liblcf able to load these ldbs in the best way possible. More compatible with rm2k/3 the better. The games can be opened in the rm2k/3 editor to compare how liblcf interprets them vs how rm2k/3 does it.
When returning from
Add a check before every read operation to ensure we never pass