Use alloc_plain to allocate the md_cart space so it will be writable if needed

This lets us support mapper32k_w without needing extra hacks.  Because of lazystates, this doesn't hurt us on state size either (lazystates did not exists when we did 722358c1b1
This commit is contained in:
nattthebear 2020-08-07 07:17:14 -04:00
parent c3c9a4c81f
commit 25bdeb7f69
3 changed files with 3 additions and 3 deletions

Binary file not shown.

View File

@ -50,9 +50,9 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
Path = lp.Comm.CoreFileProvider.DllPath(),
Filename = "gpgx.wbx",
SbrkHeapSizeKB = 512,
SealedHeapSizeKB = 36 * 1024,
SealedHeapSizeKB = 4 * 1024,
InvisibleHeapSizeKB = 4 * 1024,
PlainHeapSizeKB = 64 + 1024,
PlainHeapSizeKB = 34 * 1024,
MmapHeapSizeKB = 1 * 1024,
SkipCoreConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxCoreConsistencyCheck),
SkipMemoryConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxMemoryConsistencyCheck),

View File

@ -527,7 +527,7 @@ GPGX_EX int gpgx_init(const char* feromextension,
tempsram = alloc_invisible(24 * 1024);
bg_pattern_cache = alloc_invisible(0x80000);
ext.md_cart.rom = alloc_sealed(32 * 1024 * 1024);
ext.md_cart.rom = alloc_plain(32 * 1024 * 1024);
SZHVC_add = alloc_sealed(131072);
SZHVC_sub = alloc_sealed(131072);
ym2612_lfo_pm_table = alloc_sealed(131072);