GBA Memory: Fix AGBPrint running out of memory on Wii (fixes #1001)
Vicki Pfau vi@endrift.com
Sat, 10 Mar 2018 16:19:05 -0800
1 files changed,
1 insertions(+),
1 deletions(-)
jump to
M
src/gba/memory.c
→
src/gba/memory.c
@@ -1629,7 +1629,7 @@ void _pristineCow(struct GBA* gba) {
if (!gba->isPristine) { return; } -#ifndef FIXED_ROM_BUFFER +#if !defined(FIXED_ROM_BUFFER) && !defined(__wii__) void* newRom = anonymousMemoryMap(SIZE_CART0); memcpy(newRom, gba->memory.rom, gba->memory.romSize); memset(((uint8_t*) newRom) + gba->memory.romSize, 0xFF, SIZE_CART0 - gba->memory.romSize);