Fix crash when saving CD ebram

This commit is contained in:
CasualPokePlayer 2024-04-26 16:18:34 -07:00
parent 80f209ed0d
commit fb438863f5
3 changed files with 4 additions and 4 deletions

Binary file not shown.

View File

@ -43,8 +43,8 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
Filename = "gpgx.wbx",
SbrkHeapSizeKB = 512,
SealedHeapSizeKB = 4 * 1024,
InvisibleHeapSizeKB = 4 * 1024,
PlainHeapSizeKB = 48 * 1024,
InvisibleHeapSizeKB = 2572 * 1024,
PlainHeapSizeKB = 4 * 1024,
MmapHeapSizeKB = 1 * 1024,
SkipCoreConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxCoreConsistencyCheck),
SkipMemoryConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxMemoryConsistencyCheck),

View File

@ -722,8 +722,8 @@ GPGX_EX int gpgx_init(const char* feromextension,
bitmap.width = 1024;
bitmap.height = 512;
bitmap.pitch = 1024 * 4;
bitmap.data = alloc_plain(2 * 1024 * 1024);
tempsram = alloc_plain(24 * 1024);
bitmap.data = alloc_invisible(2 * 1024 * 1024);
tempsram = alloc_invisible(0x100000 + 0x2000);
// Initializing ram deepfreeze list
#ifdef USE_RAM_DEEPFREEZE