mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-08-31 10:52:50 +02:00
Warn when loading ROMs with RAM sizes less than a bank
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user