[Debugger] Show commands on stepping

This commit is contained in:
zilmar 2018-01-18 23:25:36 +11:00
parent 73944b2636
commit f445483f9c
2 changed files with 11 additions and 0 deletions

View File

@ -42,10 +42,12 @@ CDebuggerUI::CDebuggerUI() :
CSymbols::InitializeCriticalSection();
g_Settings->RegisterChangeCB(GameRunning_InReset, this, (CSettings::SettingChangedFunc)GameReset);
g_Settings->RegisterChangeCB(Debugger_SteppingOps, this, (CSettings::SettingChangedFunc)SteppingOpsChanged);
}
CDebuggerUI::~CDebuggerUI(void)
{
g_Settings->UnregisterChangeCB(Debugger_SteppingOps, this, (CSettings::SettingChangedFunc)SteppingOpsChanged);
g_Settings->UnregisterChangeCB(GameRunning_InReset, this, (CSettings::SettingChangedFunc)GameReset);
Debug_Reset();
delete m_MemoryView;
@ -62,6 +64,14 @@ CDebuggerUI::~CDebuggerUI(void)
CSymbols::DeleteCriticalSection();
}
void CDebuggerUI::SteppingOpsChanged(CDebuggerUI * _this)
{
if (g_Settings->LoadBool(Debugger_SteppingOps))
{
_this->OpenCommandWindow();
}
}
void CDebuggerUI::GameReset(CDebuggerUI * _this)
{
if (!g_Settings->LoadBool(GameRunning_InReset))

View File

@ -68,6 +68,7 @@ public:
CDMALog* DMALog();
static void GameReset(CDebuggerUI * _this);
static void SteppingOpsChanged(CDebuggerUI * _this);
protected:
void TLBChanged(void);