mirror of
https://git.eden-emu.dev/eden-emu/eden.git
synced 2025-07-22 19:45:46 +00:00
bktr: Add logging on successful patch
This commit is contained in:
parent
2814ca3624
commit
cbd517d8cc
3 changed files with 24 additions and 7 deletions
|
@ -43,7 +43,7 @@ size_t BKTR::Read(u8* data, size_t length, size_t offset) const {
|
|||
|
||||
const auto next_relocation = GetNextRelocationEntry(offset);
|
||||
|
||||
if (offset + length >= next_relocation.address_patch) {
|
||||
if (offset + length > next_relocation.address_patch) {
|
||||
const u64 partition = next_relocation.address_patch - offset;
|
||||
return Read(data, partition, offset) +
|
||||
Read(data + partition, length - partition, offset + partition);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue