mirror of https://github.com/mgba-emu/mgba.git
GBA Core: Fix booting into BIOS when skip BIOS is enabled
This commit is contained in:
parent
fb0fed21aa
commit
1983d0f42c
3
CHANGES
3
CHANGES
|
@ -19,8 +19,9 @@ Other fixes:
|
||||||
- Core: Fix inconsistencies with setting game-specific overrides (fixes mgba.io/i/2963)
|
- Core: Fix inconsistencies with setting game-specific overrides (fixes mgba.io/i/2963)
|
||||||
- Debugger: Fix writing to specific segment in command-line debugger
|
- Debugger: Fix writing to specific segment in command-line debugger
|
||||||
- GB Serialize: Prevent loading invalid states where LY >= 144 in modes other than 1
|
- 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: 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 savestate preview sizes with different scales (fixes mgba.io/i/2560)
|
||||||
- Qt: Fix potential crash when configuring shortcuts
|
- Qt: Fix potential crash when configuring shortcuts
|
||||||
Misc:
|
Misc:
|
||||||
|
|
|
@ -801,7 +801,7 @@ static void _GBACoreReset(struct mCore* core) {
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
ARMReset(core->cpu);
|
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) {
|
if (!forceSkip && (gba->romVf || gba->memory.rom) && gba->pristineRomSize >= 0xA0 && gba->biosVf) {
|
||||||
uint32_t crc = doCrc32(&gba->memory.rom[1], 0x9C);
|
uint32_t crc = doCrc32(&gba->memory.rom[1], 0x9C);
|
||||||
if (crc != LOGO_CRC32) {
|
if (crc != LOGO_CRC32) {
|
||||||
|
|
Loading…
Reference in New Issue