AntonioDePau / GHDS_ModdingTool

Modding tool for GH and BH on NDS
6 stars 0 forks source link

ROM won't start due to incorrect decompressed size of .QGM file #4

Closed AntonioDePau closed 1 year ago

AntonioDePau commented 1 year ago

After nested decompression implementation the decompressed size of one of the QGM files (Grace Kelly - BH) is incorrect. The detected decompressed size is 0x20 even though that's lower than the whole compressed size.

AntonioDePau commented 1 year ago

Fixed with 5a4007273e840312914684d7ff0b9fdf21cdf241.

Sometimes a nested decompression check will find all the needed info to keep decompressing bytes even though we've already decompressed anything that needed to be decompressed.

On top of checking for 0x10 byte, we also need to make sure that the decompressed byte length matches the expected decompressed file length.