diff --git a/Source/Core/DolphinQt/MenuBar.cpp b/Source/Core/DolphinQt/MenuBar.cpp index 453260ea91..60ac3d0b2e 100644 --- a/Source/Core/DolphinQt/MenuBar.cpp +++ b/Source/Core/DolphinQt/MenuBar.cpp @@ -136,6 +136,7 @@ void MenuBar::OnEmulationStateChanged(Core::State state) m_jit_interpreter_core->setEnabled(running); m_jit_block_linking->setEnabled(!running); m_jit_disable_cache->setEnabled(!running); + m_jit_disable_fastmem->setEnabled(!running); m_jit_clear_cache->setEnabled(running); m_jit_log_coverage->setEnabled(!running); m_jit_search_instruction->setEnabled(running); @@ -810,6 +811,14 @@ void MenuBar::AddJITMenu() ClearCache(); }); + m_jit_disable_fastmem = m_jit->addAction(tr("Disable Fastmem")); + m_jit_disable_fastmem->setCheckable(true); + m_jit_disable_fastmem->setChecked(!SConfig::GetInstance().bFastmem); + connect(m_jit_disable_fastmem, &QAction::toggled, [this](bool enabled) { + SConfig::GetInstance().bFastmem = !enabled; + ClearCache(); + }); + m_jit_clear_cache = m_jit->addAction(tr("Clear Cache"), this, &MenuBar::ClearCache); m_jit->addSeparator(); diff --git a/Source/Core/DolphinQt/MenuBar.h b/Source/Core/DolphinQt/MenuBar.h index 41811b4a09..b42a661813 100644 --- a/Source/Core/DolphinQt/MenuBar.h +++ b/Source/Core/DolphinQt/MenuBar.h @@ -249,6 +249,7 @@ private: QAction* m_jit_interpreter_core; QAction* m_jit_block_linking; QAction* m_jit_disable_cache; + QAction* m_jit_disable_fastmem; QAction* m_jit_clear_cache; QAction* m_jit_log_coverage; QAction* m_jit_search_instruction;