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 71b485c commit 82d3ffdCopy full SHA for 82d3ffd
Core/gb.c
@@ -279,7 +279,7 @@ void GB_borrow_sgb_border(GB_gameboy_t *gb)
279
if (gb->border_mode != GB_BORDER_ALWAYS) return;
280
if (gb->tried_loading_sgb_border) return;
281
gb->tried_loading_sgb_border = true;
282
- if (gb->rom && gb->rom[0x146] != 3) return; // Not an SGB game, nothing to borrow
+ if (!gb->rom || gb->rom[0x146] != 3) return; // Not an SGB game, nothing to borrow
283
if (!gb->boot_rom_load_callback) return; // Can't borrow a border without this callback
284
GB_gameboy_t sgb;
285
GB_init(&sgb, GB_MODEL_SGB);
0 commit comments