fixed regression that prevents SRAM data > 2K to be loaded properly

This commit is contained in:
ekeeke31 2010-02-19 12:30:02 +00:00
parent 9eadfc41b3
commit 180317a392

View File

@ -131,7 +131,7 @@ static int FAT_ManageFile(char *filename, u8 direction, u8 filetype)
if (filetype) /* SRAM */
{
memcpy(sram.sram, savebuffer, filesize);
memcpy(sram.sram, savebuffer, done);
sram.crc = crc32 (0, sram.sram, 0x10000);
}
else