Don't display this warning on MBC2/7 games

This commit is contained in:
Lior Halphon 2024-12-08 16:15:00 +02:00
parent 27fe0d9129
commit 65c786a33c
1 changed files with 3 additions and 1 deletions

View File

@ -229,7 +229,9 @@ void GB_configure_cart(GB_gameboy_t *gb)
}
}
if (gb->mbc_ram_size && gb->mbc_ram_size < 0x2000) {
if (gb->mbc_ram_size && gb->mbc_ram_size < 0x2000 &&
gb->cartridge_type->mbc_type != GB_MBC2 &&
gb->cartridge_type->mbc_type != GB_MBC7) {
GB_log(gb, "This ROM requests a RAM size smaller than a bank, it may misbehave if this was not done intentionally.\n");
}