all repos — mgba @ 690eae25ddc9837144a7bb190a53ce35b533688b

mGBA Game Boy Advance Emulator

Qt: Fix game restarting erroneously when selecting a BIOS
Vicki Pfau vi@endrift.com
Tue, 31 Jan 2017 09:58:55 -0800
commit

690eae25ddc9837144a7bb190a53ce35b533688b

parent

dc317e952eb2ecef09c4cbb8d3ca57c1a2267af5

1 files changed, 2 insertions(+), 2 deletions(-)

jump to
M src/platform/qt/GameController.cppsrc/platform/qt/GameController.cpp

@@ -525,11 +525,11 @@ void GameController::loadBIOS(int platform, const QString& path) {

if (m_bios == path) { return; } - if (m_gameOpen && this->platform() == platform) { + if (!m_bios.isNull() && m_gameOpen && this->platform() == platform) { closeGame(); m_bios = path; openGame(); - } else if (!m_gameOpen) { + } else if (!m_gameOpen || m_bios.isNull()) { m_bios = path; } }