1
0
Fork 0
mirror of https://github.com/DarkMatterCore/nxdumptool.git synced 2024-11-22 18:26:39 +00:00

Fix unaligned reads from the gamecard secure storage area.

Big thanks to Whovian for finding the bug and testing the change.
This commit is contained in:
Pablo Curiel 2020-09-19 06:21:23 -04:00
parent b806c2e7d0
commit 083874bd4e

View file

@ -977,7 +977,7 @@ static bool gamecardReadStorageArea(void *out, u64 read_size, u64 offset, bool l
memcpy(out_u8, g_gameCardReadBuf + data_start_offset, out_chunk_size); memcpy(out_u8, g_gameCardReadBuf + data_start_offset, out_chunk_size);
success = (block_size > GAMECARD_READ_BUFFER_SIZE ? gamecardReadStorageArea(out_u8 + out_chunk_size, read_size - out_chunk_size, base_offset + out_chunk_size, false) : true); success = (block_size > GAMECARD_READ_BUFFER_SIZE ? gamecardReadStorageArea(out_u8 + out_chunk_size, read_size - out_chunk_size, offset + out_chunk_size, false) : true);
} }
end: end: