bktr: Implement IVFC offset shifting

Fixes base game read errors
This commit is contained in:
Zach Hilman committed 2018-09-04 16:24:02 -04:00
1 parent e88835cd40
commit b8f8b0fa47
8 files changed
+36 -8

No files matched your search

+1 -1
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) {