SameBoy | Accurate GB/GBC emulator |
| download: https://git.y1.nz/archives/sameboy.tar.gz | |
| README | Files | Log | Refs | LICENSE |
commit 3bee0deda5b7921e82792d532d780babae2bc375 parent 101e8943141e18058506edfea2c984901fa28f1f Author: Lior Halphon <LIJI32@gmail.com> Date: Sat, 16 Nov 2024 14:33:13 +0200 Warn when loading ROMs with RAM sizes less than a bank Diffstat:
| M | Core/mbc.c | 4 | ++++ |
1 file changed, 4 insertions(+), 0 deletions(-)
diff --git a/Core/mbc.c b/Core/mbc.c @@ -229,6 +229,10 @@ void GB_configure_cart(GB_gameboy_t *gb) } } + if (gb->mbc_ram_size && gb->mbc_ram_size < 0x2000) { + GB_log(gb, "This ROM requests a RAM size smaller than a bank, it may misbehave if this was not done intentionally.\n"); + } + if (gb->mbc_ram && old_mbc_ram_size != gb->mbc_ram_size) { free(gb->mbc_ram); gb->mbc_ram = NULL;
This webpage is intended to be an accessible preview of this repository. To get a fuller picture, clone it and use the git CLI.