mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-01-25 07:21:14 +01:00
Qt/debugger: only consider debugger hotkeys if debugging is enabled
This commit is contained in:
parent
1fe92b8be7
commit
2c861e75f5
@ -213,29 +213,32 @@ void HotkeyScheduler::Run()
|
||||
IsHotkey(HK_TRIGGER_SYNC_BUTTON, true));
|
||||
}
|
||||
|
||||
if (IsHotkey(HK_STEP))
|
||||
emit Step();
|
||||
if (SConfig::GetInstance().bEnableDebugging)
|
||||
{
|
||||
if (IsHotkey(HK_STEP))
|
||||
emit Step();
|
||||
|
||||
if (IsHotkey(HK_STEP_OVER))
|
||||
emit StepOver();
|
||||
if (IsHotkey(HK_STEP_OVER))
|
||||
emit StepOver();
|
||||
|
||||
if (IsHotkey(HK_STEP_OUT))
|
||||
emit StepOut();
|
||||
if (IsHotkey(HK_STEP_OUT))
|
||||
emit StepOut();
|
||||
|
||||
if (IsHotkey(HK_SKIP))
|
||||
emit Skip();
|
||||
if (IsHotkey(HK_SKIP))
|
||||
emit Skip();
|
||||
|
||||
if (IsHotkey(HK_SHOW_PC))
|
||||
emit ShowPC();
|
||||
if (IsHotkey(HK_SHOW_PC))
|
||||
emit ShowPC();
|
||||
|
||||
if (IsHotkey(HK_SET_PC))
|
||||
emit Skip();
|
||||
if (IsHotkey(HK_SET_PC))
|
||||
emit Skip();
|
||||
|
||||
if (IsHotkey(HK_BP_TOGGLE))
|
||||
emit ToggleBreakpoint();
|
||||
if (IsHotkey(HK_BP_TOGGLE))
|
||||
emit ToggleBreakpoint();
|
||||
|
||||
if (IsHotkey(HK_BP_ADD))
|
||||
emit AddBreakpoint();
|
||||
if (IsHotkey(HK_BP_ADD))
|
||||
emit AddBreakpoint();
|
||||
}
|
||||
|
||||
// TODO: HK_MBP_ADD
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user