Skip to content

Commit

Permalink
GBA Core: Fix booting into BIOS when skip BIOS is enabled
Browse files Browse the repository at this point in the history
  • Loading branch information
endrift committed Dec 15, 2024
1 parent fb0fed2 commit 1983d0f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion CHANGES
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ Other fixes:
- Core: Fix inconsistencies with setting game-specific overrides (fixes mgba.io/i/2963)
- Debugger: Fix writing to specific segment in command-line debugger
- GB Serialize: Prevent loading invalid states where LY >= 144 in modes other than 1
- GBA Hardware: Fix loading states unconditionally overwriting GPIO memory
- GBA: Fix getting game info for multiboot ROMs
- GBA Core: Fix booting into BIOS when skip BIOS is enabled
- GBA Hardware: Fix loading states unconditionally overwriting GPIO memory
- Qt: Fix savestate preview sizes with different scales (fixes mgba.io/i/2560)
- Qt: Fix potential crash when configuring shortcuts
Misc:
Expand Down
2 changes: 1 addition & 1 deletion src/gba/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -801,7 +801,7 @@ static void _GBACoreReset(struct mCore* core) {
#endif

ARMReset(core->cpu);
bool forceSkip = gba->mbVf || core->opts.skipBios;
bool forceSkip = gba->mbVf || (core->opts.skipBios && (gba->romVf || gba->memory.rom));
if (!forceSkip && (gba->romVf || gba->memory.rom) && gba->pristineRomSize >= 0xA0 && gba->biosVf) {
uint32_t crc = doCrc32(&gba->memory.rom[1], 0x9C);
if (crc != LOGO_CRC32) {
Expand Down

0 comments on commit 1983d0f

Please sign in to comment.