pcsx2 gui: (will love review and big test)

* Really save the reg-setting (ie the plugigns folder path)


git-svn-id: http://pcsx2.googlecode.com/svn/trunk@4392 96395faa-99c1-11dd-bbfe-3dabce05a288
This commit is contained in:
gregory.hainaut@gmail.com 2011-03-05 21:20:52 +00:00
parent 7e62a13131
commit cd615ed906
1 changed files with 14 additions and 0 deletions

View File

@ -1097,6 +1097,19 @@ static void SaveVmSettings()
sApp.DispatchVmSettingsEvent( vmsaver );
}
static void SaveRegSettings()
{
ScopedPtr<wxConfigBase> conf_install;
if (InstallationMode == InstallMode_Portable) return;
// sApp. macro cannot be use because you need the return value of OpenInstallSettingsFile method
if( Pcsx2App* __app_ = (Pcsx2App*)wxApp::GetInstance() ) conf_install = (*__app_).OpenInstallSettingsFile();
conf_install->SetRecordDefaults(false);
App_SaveInstallSettings( conf_install );
}
void AppSaveSettings()
{
// If multiple SaveSettings messages are requested, we want to ignore most of them.
@ -1116,6 +1129,7 @@ void AppSaveSettings()
SaveUiSettings();
SaveVmSettings();
SaveRegSettings(); // save register because of PluginsFolder change
AtomicExchange( isPosted, false );
}