We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9f53fcc commit 8d06339Copy full SHA for 8d06339
Core/mbc.c
@@ -195,6 +195,14 @@ void GB_configure_cart(GB_gameboy_t *gb)
195
GB_log(gb, "Cartridge type %02x is not yet supported.\n", gb->rom[0x147]);
196
}
197
198
+
199
+ if (!gb->cartridge_type->has_ram &&
200
+ gb->cartridge_type->mbc_type != GB_NO_MBC &&
201
+ gb->cartridge_type->mbc_type != GB_TPP1 &&
202
+ gb->rom[0x149]) {
203
+ GB_log(gb, "ROM header reports no RAM, but also reports a non-zero RAM size. Assuming cartridge has RAM.\n");
204
+ gb->cartridge_type++;
205
+ }
206
207
size_t old_mbc_ram_size = gb->mbc_ram_size;
208
gb->mbc_ram_size = 0;
0 commit comments