DolphinQt: Add fastmem option to debugger UI
This commit is contained in:
parent
4fc8674a7a
commit
5c38727651
|
@ -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();
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue