Qt: Enable -b for Boot BIOS menu option (fixes #2074)

This commit is contained in:
Vicki Pfau 2022-02-02 20:24:39 -08:00
parent 73efec2a02
commit e2040146ea
2 changed files with 6 additions and 1 deletions

View File

@ -46,6 +46,7 @@ Misc:
- Qt: Add optional frame counter to OSD (closes mgba.io/i/1728)
- Qt: Add optional emulation-related information on reset (closes mgba.io/i/1780)
- Qt: Add QOpenGLWidget cross-thread codepath for macOS (fixes mgba.io/i/1754)
- Qt: Enable -b for Boot BIOS menu option (fixes mgba.io/i/2074)
- Windows: Attach to console if present
0.9.3: (2021-12-17)

View File

@ -348,7 +348,11 @@ void Window::selectROM() {
}
void Window::bootBIOS() {
setController(m_manager->loadBIOS(mPLATFORM_GBA, m_config->getOption("gba.bios")), QString());
QString bios(m_config->getOption("gba.bios"));
if (bios.isEmpty()) {
bios = m_config->getOption("bios");
}
setController(m_manager->loadBIOS(mPLATFORM_GBA, bios), QString());
}
#ifdef USE_SQLITE3