From 7baabe99d178b6f096909c71cd92af0cbcce1e43 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Sun, 14 May 2017 16:49:25 -0400 Subject: Host: Get rid of Host_SetStartupDebuggingParameters() This is something that should be the responsibility of the frontend booting the game. Making this part of the host 'interface' inherently requires frontends to leak internal details (much like the other UI-related functions in the interface). This also decouples more behavior from the debugger and the initialization process in the wx frontend. This also eliminates several usages of the parent menubar in the debugger code window. --- Source/Core/DolphinWX/Debugger/CodeWindow.cpp | 28 +-------------------------- 1 file changed, 1 insertion(+), 27 deletions(-) (limited to 'Source/Core/DolphinWX/Debugger/CodeWindow.cpp') diff --git a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp index 75ff5c16dc..c1e10e248e 100644 --- a/Source/Core/DolphinWX/Debugger/CodeWindow.cpp +++ b/Source/Core/DolphinWX/Debugger/CodeWindow.cpp @@ -481,7 +481,7 @@ void CCodeWindow::OnCPUMode(wxCommandEvent& event) switch (event.GetId()) { case IDM_INTERPRETER: - PowerPC::SetMode(UseInterpreter() ? PowerPC::CoreMode::Interpreter : PowerPC::CoreMode::JIT); + PowerPC::SetMode(event.IsChecked() ? PowerPC::CoreMode::Interpreter : PowerPC::CoreMode::JIT); break; case IDM_BOOT_TO_PAUSE: SConfig::GetInstance().bBootToPause = event.IsChecked(); @@ -561,32 +561,6 @@ void CCodeWindow::OnJitMenu(wxCommandEvent& event) } } -// Shortcuts -bool CCodeWindow::UseInterpreter() -{ - return GetParentMenuBar()->IsChecked(IDM_INTERPRETER); -} - -bool CCodeWindow::BootToPause() -{ - return GetParentMenuBar()->IsChecked(IDM_BOOT_TO_PAUSE); -} - -bool CCodeWindow::AutomaticStart() -{ - return GetParentMenuBar()->IsChecked(IDM_AUTOMATIC_START); -} - -bool CCodeWindow::JITNoBlockCache() -{ - return GetParentMenuBar()->IsChecked(IDM_JIT_NO_BLOCK_CACHE); -} - -bool CCodeWindow::JITNoBlockLinking() -{ - return GetParentMenuBar()->IsChecked(IDM_JIT_NO_BLOCK_LINKING); -} - // Update GUI void CCodeWindow::Repopulate(bool refresh_codeview) { -- cgit v1.2.3