From 5868e40aaa070d8f398598b69095d184dbbd30aa Mon Sep 17 00:00:00 2001 From: Alex Duchesne Date: Fri, 21 Feb 2025 19:06:34 -0500 Subject: [PATCH] SNES: Increase max rom size to the full 6MB (#172) Will only work on targets with 8MB+ --- retro-core/components/snes9x/src/memmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/retro-core/components/snes9x/src/memmap.c b/retro-core/components/snes9x/src/memmap.c index a646df51..4db6d081 100644 --- a/retro-core/components/snes9x/src/memmap.c +++ b/retro-core/components/snes9x/src/memmap.c @@ -154,7 +154,7 @@ bool S9xInitMemory(void) // Try to find the biggest (commercial) ROM size that can fit in our available memory. // const size_t AllocSizes[] = {0x600000, 0x400000, 0x300000, 0x280000, 0x200000, 0x100000, 0x80000, 0}; - const size_t AllocSizes[] = {0x400000, 0x200000, 0x80000, 0}; + const size_t AllocSizes[] = {0x600000, 0x400000, 0x200000, 0x80000, 0}; for (const size_t *size = AllocSizes; *size && !Memory.ROM; ++size) { Memory.ROM_AllocSize = *size + 0x10000 + 0x200; // Extra 64KB for mapping purposes