GBA: Fix skipping BIOS on irregularly sized ROMs

This commit is contained in:
Vicki Pfau 2019-05-19 15:05:58 -07:00
parent 19747ea21d
commit 109472f67f
3 changed files with 2 additions and 5 deletions

View File

@ -43,6 +43,7 @@ Other fixes:
- Qt: Fix some Qt display driver race conditions
- FFmpeg: Fix audio conversion producing gaps
- Core: Improved lockstep driver reliability (Le Hoang Quyen)
- GBA: Fix skipping BIOS on irregularly sized ROMs
Misc:
- GBA Savedata: EEPROM performance fixes
- GBA Savedata: Automatically map 1Mbit Flash files as 1Mbit Flash

View File

@ -528,7 +528,7 @@ static void _GBACoreReset(struct mCore* core) {
#endif
ARMReset(core->cpu);
if (core->opts.skipBios && gba->isPristine) {
if (core->opts.skipBios && (gba->romVf || gba->memory.rom)) {
GBASkipBIOS(core->board);
}
}

View File

@ -241,10 +241,6 @@ void GBAReset(struct ARMCore* cpu) {
if (gba->pristineRomSize > SIZE_CART0) {
GBAMatrixReset(gba);
}
if (!gba->romVf && gba->memory.rom) {
GBASkipBIOS(gba);
}
}
void GBASkipBIOS(struct GBA* gba) {