mirror of
https://github.com/libretro/mgba.git
synced 2024-12-03 13:50:44 +00:00
This commit is contained in:
commit
8ff5d4ff40
@ -670,9 +670,14 @@ void GameController::setSkipBIOS(bool set) {
|
||||
}
|
||||
|
||||
void GameController::setUseBIOS(bool use) {
|
||||
threadInterrupt();
|
||||
if (use == m_useBios) {
|
||||
return;
|
||||
}
|
||||
m_useBios = use;
|
||||
threadContinue();
|
||||
if (m_gameOpen) {
|
||||
closeGame();
|
||||
openGame();
|
||||
}
|
||||
}
|
||||
|
||||
void GameController::loadState(int slot) {
|
||||
|
@ -1123,6 +1123,11 @@ void Window::setupMenu(QMenuBar* menubar) {
|
||||
m_controller->setSkipBIOS(value.toBool());
|
||||
}, this);
|
||||
|
||||
ConfigOption* useBios = m_config->addOption("useBios");
|
||||
useBios->connect([this](const QVariant& value) {
|
||||
m_controller->setUseBIOS(value.toBool());
|
||||
}, this);
|
||||
|
||||
ConfigOption* buffers = m_config->addOption("audioBuffers");
|
||||
buffers->connect([this](const QVariant& value) {
|
||||
emit audioBufferSamplesChanged(value.toInt());
|
||||
|
Loading…
Reference in New Issue
Block a user