mirror of https://github.com/PCSX2/pcsx2.git
Cause the gui to remember if 'Enable Patches' is checked. (Still not used, though.)
git-svn-id: http://pcsx2.googlecode.com/svn/trunk@2121 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
parent
4fc93dded4
commit
35aac70cd1
|
@ -357,7 +357,7 @@ static __forceinline void VSyncStart(u32 sCycle)
|
||||||
psxVBlankStart();
|
psxVBlankStart();
|
||||||
|
|
||||||
if (gates) rcntStartGate(true, sCycle); // Counters Start Gate code
|
if (gates) rcntStartGate(true, sCycle); // Counters Start Gate code
|
||||||
//if (Config.Patch) applypatch(1); // fixme - Apply patches
|
//if (EmuConfig.EnablePatches) applypatch(1); // fixme - Apply patches
|
||||||
|
|
||||||
// INTC - VB Blank Start Hack --
|
// INTC - VB Blank Start Hack --
|
||||||
// Hack fix! This corrects a freezeup in Granda 2 where it decides to spin
|
// Hack fix! This corrects a freezeup in Granda 2 where it decides to spin
|
||||||
|
|
|
@ -158,6 +158,7 @@ void MainEmuFrame::ConnectMenus()
|
||||||
ConnectMenu( MenuId_Boot_ELF, Menu_OpenELF_Click );
|
ConnectMenu( MenuId_Boot_ELF, Menu_OpenELF_Click );
|
||||||
ConnectMenu( MenuId_IsoBrowse, Menu_IsoBrowse_Click );
|
ConnectMenu( MenuId_IsoBrowse, Menu_IsoBrowse_Click );
|
||||||
ConnectMenu( MenuId_SkipBiosToggle, Menu_SkipBiosToggle_Click );
|
ConnectMenu( MenuId_SkipBiosToggle, Menu_SkipBiosToggle_Click );
|
||||||
|
ConnectMenu( MenuId_EnablePatches, Menu_EnablePatches_Click );
|
||||||
ConnectMenu( MenuId_Exit, Menu_Exit_Click );
|
ConnectMenu( MenuId_Exit, Menu_Exit_Click );
|
||||||
|
|
||||||
ConnectMenu( MenuId_Sys_SuspendResume, Menu_SuspendResume_Click );
|
ConnectMenu( MenuId_Sys_SuspendResume, Menu_SuspendResume_Click );
|
||||||
|
@ -509,6 +510,7 @@ void MainEmuFrame::ApplySettings()
|
||||||
wxMenuBar& menubar( *GetMenuBar() );
|
wxMenuBar& menubar( *GetMenuBar() );
|
||||||
|
|
||||||
menubar.Check( MenuId_SkipBiosToggle, g_Conf->EmuOptions.SkipBiosSplash );
|
menubar.Check( MenuId_SkipBiosToggle, g_Conf->EmuOptions.SkipBiosSplash );
|
||||||
|
menubar.Check( MenuId_EnablePatches, g_Conf->EmuOptions.EnablePatches );
|
||||||
|
|
||||||
menubar.Check( MenuId_Config_Multitap0Toggle, g_Conf->EmuOptions.MultitapPort0_Enabled );
|
menubar.Check( MenuId_Config_Multitap0Toggle, g_Conf->EmuOptions.MultitapPort0_Enabled );
|
||||||
menubar.Check( MenuId_Config_Multitap1Toggle, g_Conf->EmuOptions.MultitapPort1_Enabled );
|
menubar.Check( MenuId_Config_Multitap1Toggle, g_Conf->EmuOptions.MultitapPort1_Enabled );
|
||||||
|
|
|
@ -157,6 +157,7 @@ protected:
|
||||||
void Menu_IsoBrowse_Click(wxCommandEvent &event);
|
void Menu_IsoBrowse_Click(wxCommandEvent &event);
|
||||||
void Menu_IsoRecent_Click(wxCommandEvent &event);
|
void Menu_IsoRecent_Click(wxCommandEvent &event);
|
||||||
void Menu_SkipBiosToggle_Click(wxCommandEvent &event);
|
void Menu_SkipBiosToggle_Click(wxCommandEvent &event);
|
||||||
|
void Menu_EnablePatches_Click(wxCommandEvent &event);
|
||||||
|
|
||||||
void Menu_BootCdvd_Click(wxCommandEvent &event);
|
void Menu_BootCdvd_Click(wxCommandEvent &event);
|
||||||
void Menu_OpenELF_Click(wxCommandEvent &event);
|
void Menu_OpenELF_Click(wxCommandEvent &event);
|
||||||
|
|
|
@ -121,6 +121,7 @@ void MainEmuFrame::Menu_BootCdvd_Click( wxCommandEvent &event )
|
||||||
}
|
}
|
||||||
|
|
||||||
g_Conf->EmuOptions.SkipBiosSplash = GetMenuBar()->IsChecked( MenuId_SkipBiosToggle );
|
g_Conf->EmuOptions.SkipBiosSplash = GetMenuBar()->IsChecked( MenuId_SkipBiosToggle );
|
||||||
|
g_Conf->EmuOptions.EnablePatches = GetMenuBar()->IsChecked( MenuId_EnablePatches );
|
||||||
AppSaveSettings();
|
AppSaveSettings();
|
||||||
|
|
||||||
sApp.SysExecute( g_Conf->CdvdSource );
|
sApp.SysExecute( g_Conf->CdvdSource );
|
||||||
|
@ -171,6 +172,17 @@ void MainEmuFrame::Menu_SkipBiosToggle_Click( wxCommandEvent &event )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void MainEmuFrame::Menu_EnablePatches_Click( wxCommandEvent &event )
|
||||||
|
{
|
||||||
|
g_Conf->EmuOptions.EnablePatches = GetMenuBar()->IsChecked( MenuId_EnablePatches );
|
||||||
|
|
||||||
|
if( wxConfigBase* conf = GetAppConfig() )
|
||||||
|
{
|
||||||
|
IniSaver saver( *conf );
|
||||||
|
g_Conf->EmuOptions.LoadSave( saver );
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void MainEmuFrame::Menu_OpenELF_Click(wxCommandEvent &event)
|
void MainEmuFrame::Menu_OpenELF_Click(wxCommandEvent &event)
|
||||||
{
|
{
|
||||||
CoreThread.Suspend();
|
CoreThread.Suspend();
|
||||||
|
|
Loading…
Reference in New Issue