mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Core: Kill off Host_ShowJitResults
Another host function that can be killed off by simple wx event handling
This commit is contained in:
@ -309,7 +309,12 @@ void CCodeView::OnPopupMenu(wxCommandEvent& event)
|
||||
break;
|
||||
|
||||
case IDM_JITRESULTS:
|
||||
m_debugger->ShowJitResults(m_selection);
|
||||
{
|
||||
// Propagate back to the parent window and tell it
|
||||
// to flip to the JIT tab for the current address.
|
||||
wxCommandEvent jit_event(wxEVT_HOST_COMMAND, IDM_UPDATEJITPANE);
|
||||
GetEventHandler()->AddPendingEvent(jit_event);
|
||||
}
|
||||
break;
|
||||
|
||||
case IDM_FOLLOWBRANCH:
|
||||
|
@ -49,6 +49,7 @@
|
||||
#include "DolphinWX/Debugger/CodeView.h"
|
||||
#include "DolphinWX/Debugger/CodeWindow.h"
|
||||
#include "DolphinWX/Debugger/DebuggerUIUtil.h"
|
||||
#include "DolphinWX/Debugger/JitWindow.h"
|
||||
#include "DolphinWX/Debugger/RegisterWindow.h"
|
||||
|
||||
extern "C" // Bitmaps
|
||||
@ -156,6 +157,13 @@ void CCodeWindow::OnHostMessage(wxCommandEvent& event)
|
||||
Update();
|
||||
if (m_BreakpointWindow) m_BreakpointWindow->NotifyUpdate();
|
||||
break;
|
||||
|
||||
case IDM_UPDATEJITPANE:
|
||||
// Check if the JIT pane is in the AUI notebook. If not, add it and switch to it.
|
||||
if (!m_JitWindow)
|
||||
ToggleJitWindow(true);
|
||||
m_JitWindow->ViewAddr(codeview->GetSelection());
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user