Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Merge pull request #8843 from Techjar/fastmem-ui
DolphinQt: Add fastmem option to debugger UI
  • Loading branch information
Tilka committed Jun 14, 2020
2 parents 9f5e6ed + 5c38727 commit ad85012
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
9 changes: 9 additions & 0 deletions Source/Core/DolphinQt/MenuBar.cpp
Expand Up @@ -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);
Expand Down Expand Up @@ -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();
Expand Down
1 change: 1 addition & 0 deletions Source/Core/DolphinQt/MenuBar.h
Expand Up @@ -249,6 +249,7 @@ class MenuBar final : public QMenuBar
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;
Expand Down

0 comments on commit ad85012

Please sign in to comment.