diff options
| author | hrydgard <hrydgard@gmail.com> | 2008-12-20 12:10:59 +0000 |
|---|---|---|
| committer | hrydgard <hrydgard@gmail.com> | 2008-12-20 12:10:59 +0000 |
| commit | 614dc1069e08366828f6d97818812eda1ad0dc91 (patch) | |
| tree | 42cbbb9c7678a594f14338f4b27817454b6447c9 /Source/Core/DebuggerWX/Src/CodeWindow.cpp | |
| parent | f0bb8f430af0c480dca20199756ba9be87ba7cd8 (diff) | |
More code reorganization.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1605 8ced0084-cf51-0410-be5f-012b33b47a6e
Diffstat (limited to 'Source/Core/DebuggerWX/Src/CodeWindow.cpp')
| -rw-r--r-- | Source/Core/DebuggerWX/Src/CodeWindow.cpp | 13 |
1 files changed, 7 insertions, 6 deletions
diff --git a/Source/Core/DebuggerWX/Src/CodeWindow.cpp b/Source/Core/DebuggerWX/Src/CodeWindow.cpp index 4931c090b1..c1cd760bca 100644 --- a/Source/Core/DebuggerWX/Src/CodeWindow.cpp +++ b/Source/Core/DebuggerWX/Src/CodeWindow.cpp @@ -496,7 +496,9 @@ void CCodeWindow::OnJITOff(wxCommandEvent& event) // creates the SCoreStartupParameter as a game is loaded GetMenuBar()->Check(event.GetId(),!event.IsChecked()); wxMessageBox(_T("Please start a game before changing mode.")); - } else { + } + else + { if (Core::GetState() != Core::CORE_RUN) { switch (event.GetId()) @@ -504,9 +506,8 @@ void CCodeWindow::OnJITOff(wxCommandEvent& event) case IDM_JITUNLIMITED: Core::g_CoreStartupParameter.bJITUnlimitedCache = event.IsChecked(); jit.ClearCache(); // allow InitCache() even after the game has started - jit.InitCache(); GetMenuBar()->Enable(event.GetId(),!event.IsChecked()); - break; + return; // avoid a second jit.ClearCache case IDM_JITOFF: Core::g_CoreStartupParameter.bJITOff = event.IsChecked(); break; case IDM_JITLSOFF: @@ -531,15 +532,15 @@ void CCodeWindow::OnJITOff(wxCommandEvent& event) Core::g_CoreStartupParameter.bJITSystemRegistersOff = event.IsChecked(); break; } jit.ClearCache(); - } else { + } + else + { //event.Skip(); // this doesn't work GetMenuBar()->Check(event.GetId(),!event.IsChecked()); wxMessageBox(_T("Please pause the emulator before changing mode.")); } } } -// ============== - void CCodeWindow::OnJitMenu(wxCommandEvent& event) { |
