mirror of https://github.com/mgba-emu/mgba.git
Qt: Ensure audio processor is only set if one is present in config
This commit is contained in:
parent
6d5d11b074
commit
92d5ebf2f4
|
@ -57,7 +57,9 @@ GBAApp::GBAApp(int& argc, char* argv[])
|
|||
return;
|
||||
}
|
||||
|
||||
AudioProcessor::setDriver(static_cast<AudioProcessor::Driver>(m_configController.getQtOption("audioDriver").toInt()));
|
||||
if (!m_configController.getQtOption("audioDriver").isNull()) {
|
||||
AudioProcessor::setDriver(static_cast<AudioProcessor::Driver>(m_configController.getQtOption("audioDriver").toInt()));
|
||||
}
|
||||
Window* w = new Window(&m_configController);
|
||||
connect(w, &Window::destroyed, [this]() {
|
||||
m_windows[0] = nullptr;
|
||||
|
|
Loading…
Reference in New Issue