This commit is contained in:
twinaphex 2015-08-15 16:42:21 +02:00
commit 8ff5d4ff40
2 changed files with 12 additions and 2 deletions

View File

@ -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) {

View File

@ -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());