Skip to content

Commit

Permalink
SNES: Increase max rom size to the full 6MB (#172)
Browse files Browse the repository at this point in the history
Will only work on targets with 8MB+
  • Loading branch information
ducalex committed Feb 22, 2025
1 parent 986339f commit 5fe002e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion retro-core/components/snes9x/src/memmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 5fe002e

Please sign in to comment.