mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 19:45:46 +00:00
bktr: Implement IVFC offset shifting
Fixes base game read errors
This commit is contained in:
parent
9664ce255d
commit
a6e75cd45b
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