mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 13:42:47 +00:00
Fix jedecid_and_sreg.bin offset reads
This commit is contained in:
parent
2f24f37e7b
commit
c1b04d85d4
@ -264,6 +264,6 @@ u32 ReadCartSaveJedecId(u8* buffer, u64 offset, u64 count, CartData* cdata) {
|
||||
ownBuf[1] = (id >> 8) & 0xff;
|
||||
ownBuf[2] = id & 0xff;
|
||||
ownBuf[JEDECID_AND_SREG_SIZE - 1] = sReg;
|
||||
memcpy(buffer, ownBuf, count);
|
||||
memcpy(buffer, ownBuf + offset, count);
|
||||
return 0;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user