GBA Memory: Fix AGBPrint running out of memory on Wii (fixes #1001)

This commit is contained in:
Vicki Pfau 2018-03-10 16:19:05 -08:00
parent 3443c14169
commit 35e27ea19f
1 changed files with 1 additions and 1 deletions

View File

@ -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);