mirror of https://github.com/PCSX2/pcsx2.git
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:
parent
7e62a13131
commit
cd615ed906
|
@ -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 );
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue