mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-01 05:38:50 +00:00
More code reorganization.
git-svn-id: https://dolphin-emu.googlecode.com/svn/trunk@1605 8ced0084-cf51-0410-be5f-012b33b47a6e
This commit is contained in:
parent
f0bb8f430a
commit
614dc1069e
16 changed files with 203 additions and 199 deletions
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue