mirror of https://github.com/mgba-emu/mgba.git
GBA Memory: Fix AGBPrint running out of memory on Wii (fixes #1001)
This commit is contained in:
parent
3443c14169
commit
35e27ea19f
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue