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:
parent
c3c9a4c81f
commit
25bdeb7f69
Binary file not shown.
|
@ -50,9 +50,9 @@ namespace BizHawk.Emulation.Cores.Consoles.Sega.gpgx
|
||||||
Path = lp.Comm.CoreFileProvider.DllPath(),
|
Path = lp.Comm.CoreFileProvider.DllPath(),
|
||||||
Filename = "gpgx.wbx",
|
Filename = "gpgx.wbx",
|
||||||
SbrkHeapSizeKB = 512,
|
SbrkHeapSizeKB = 512,
|
||||||
SealedHeapSizeKB = 36 * 1024,
|
SealedHeapSizeKB = 4 * 1024,
|
||||||
InvisibleHeapSizeKB = 4 * 1024,
|
InvisibleHeapSizeKB = 4 * 1024,
|
||||||
PlainHeapSizeKB = 64 + 1024,
|
PlainHeapSizeKB = 34 * 1024,
|
||||||
MmapHeapSizeKB = 1 * 1024,
|
MmapHeapSizeKB = 1 * 1024,
|
||||||
SkipCoreConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxCoreConsistencyCheck),
|
SkipCoreConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxCoreConsistencyCheck),
|
||||||
SkipMemoryConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxMemoryConsistencyCheck),
|
SkipMemoryConsistencyCheck = lp.Comm.CorePreferences.HasFlag(CoreComm.CorePreferencesFlags.WaterboxMemoryConsistencyCheck),
|
||||||
|
|
|
@ -527,7 +527,7 @@ GPGX_EX int gpgx_init(const char* feromextension,
|
||||||
tempsram = alloc_invisible(24 * 1024);
|
tempsram = alloc_invisible(24 * 1024);
|
||||||
bg_pattern_cache = alloc_invisible(0x80000);
|
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_add = alloc_sealed(131072);
|
||||||
SZHVC_sub = alloc_sealed(131072);
|
SZHVC_sub = alloc_sealed(131072);
|
||||||
ym2612_lfo_pm_table = alloc_sealed(131072);
|
ym2612_lfo_pm_table = alloc_sealed(131072);
|
||||||
|
|
Loading…
Reference in New Issue