[Debugger] Show commands on stepping
This commit is contained in:
parent
73944b2636
commit
f445483f9c
|
@ -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))
|
||||
|
|
|
@ -68,6 +68,7 @@ public:
|
|||
CDMALog* DMALog();
|
||||
|
||||
static void GameReset(CDebuggerUI * _this);
|
||||
static void SteppingOpsChanged(CDebuggerUI * _this);
|
||||
|
||||
protected:
|
||||
void TLBChanged(void);
|
||||
|
|
Loading…
Reference in New Issue