waterbox gpgx: fix crash on cart sram games

This commit is contained in:
nattthebear 2016-03-26 23:32:48 -04:00
parent 66683b16ed
commit ab16086dfd
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ void sram_init()
/* backup RAM data is stored above cartridge ROM area, at $800000-$80FFFF (max. 64K) */
if (cart.romsize > 0x800000) return;
sram.sram = cart.rom + 0x800000;
sram.sram = malloc(0x10000);
/* initialize Backup RAM */
memset(sram.sram, 0xFF, 0x10000);