all repos — mgba @ 35e27ea19f628d973a684fc675019f571e0cf2ee

mGBA Game Boy Advance Emulator

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
commit

35e27ea19f628d973a684fc675019f571e0cf2ee

parent

3443c141692ccd12240b2f69b6d7b14083f8d149

1 files changed, 1 insertions(+), 1 deletions(-)

jump to
M src/gba/memory.csrc/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);