bktr: Implement IVFC offset shifting

Fixes base game read errors
This commit is contained in:
Zach Hilman
2018-08-28 22:37:42 -04:00
parent 9664ce255d
commit a6e75cd45b
8 changed files with 36 additions and 8 deletions

View File

@ -51,7 +51,7 @@ size_t BKTR::Read(u8* data, size_t length, size_t offset) const {
if (!bktr_read) {
ASSERT_MSG(section_offset > ivfc_offset, "Offset calculation negative.");
return base_romfs->Read(data, length, section_offset);
return base_romfs->Read(data, length, section_offset - ivfc_offset);
}
if (!encrypted) {