diff --git a/pcsx2/gui/AppConfig.cpp b/pcsx2/gui/AppConfig.cpp index dabff7e98b..c506ceb75a 100644 --- a/pcsx2/gui/AppConfig.cpp +++ b/pcsx2/gui/AppConfig.cpp @@ -1097,6 +1097,19 @@ static void SaveVmSettings() sApp.DispatchVmSettingsEvent( vmsaver ); } +static void SaveRegSettings() +{ + ScopedPtr 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 ); }