mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-23 10:55:45 +00:00
bktr: Implement IVFC offset shifting
Fixes base game read errors
This commit is contained in:
parent
e88835cd40
commit
b8f8b0fa47
8 changed files with 36 additions and 8 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue