mirror of
https://github.com/d0k3/GodMode9.git
synced 2025-06-26 21:52:48 +00:00
Fix data aborts on TWL MBR writes
This commit is contained in:
parent
1ebfd74aa4
commit
c240f3463d
@ -281,7 +281,7 @@ int WriteNandBytes(const void* buffer, u64 offset, u64 count, u32 keyslot, u32 n
|
|||||||
// simple wrapper function for WriteNandSectors(...)
|
// simple wrapper function for WriteNandSectors(...)
|
||||||
return WriteNandSectors(buffer, offset / 0x200, count / 0x200, keyslot, nand_dst);
|
return WriteNandSectors(buffer, offset / 0x200, count / 0x200, keyslot, nand_dst);
|
||||||
} else { // misaligned data -> -___-
|
} else { // misaligned data -> -___-
|
||||||
u8* buffer8 = (u8*) buffer8;
|
u8* buffer8 = (u8*) buffer;
|
||||||
u8 l_buffer[0x200];
|
u8 l_buffer[0x200];
|
||||||
int errorcode = 0;
|
int errorcode = 0;
|
||||||
if (offset % 0x200) { // handle misaligned offset
|
if (offset % 0x200) { // handle misaligned offset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user