Mikompilation / Obscura

Tooling for the Fatal Frame/Project Zero/零 game franchise
MIT License
6 stars 2 forks source link

Refactoring and reorganizing code. #5

Closed HikikoMarmy closed 10 months ago

HikikoMarmy commented 10 months ago

Added abstract readers to make it easier to deal with each game separately (Currently only supports Zero 2) Cleaned up file directory list and file name list for Zero 2.

Exports now respect whole file size and trims instead of reading chunks of PS2_SECTOR_SIZE (2048). This was causing buffer overruns and some garbage in file buffers.

CMP_Decode now decodes the stream as files are read and saved, rather than reopening the file later. CMP_Decode now decodes with 4 byte pointers instead of 8, which was causing heap corruption in some cases.