mirror of
https://git.eden-emu.dev/eden-emu/eden
synced 2026-11-07 07:47:43 +01:00
bktr: Implement IVFC offset shifting
Fixes base game read errors
This commit is contained in:
1 parent
e88835cd40
commit
b8f8b0fa47
8 files changed
+36
-8
No files matched your search
@@ -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) {
|
||||
|
||||
Reference in new issue
Block a user