diff --git a/pcsx2/gui/AppUserMode.cpp b/pcsx2/gui/AppUserMode.cpp index bb5f709d02..40a9d85d81 100644 --- a/pcsx2/gui/AppUserMode.cpp +++ b/pcsx2/gui/AppUserMode.cpp @@ -195,23 +195,19 @@ wxConfigBase* Pcsx2App::TestForPortableInstall() return NULL; } -// Removes both portable ini and user local ini entry conforming to this instance of PCSX2. +// Reset RunWizard so the FTWizard is run again on next PCSX2 start. void Pcsx2App::WipeUserModeSettings() { if (InstallationMode == InstallMode_Portable) { - // Reset RunWizard so the FTWizard is run again on next PCSX2 start. - // If the user does not have admin rights to the PCSX2 folder, writing to the file may fail. - // PCSX2 does checks for admin rights on start-up if the file is found, though, - // so there should (in theory) be no sane way for this to error if we're running - // in portable mode. + // Remove the portable.ini entry "RunWizard" conforming to this instance of PCSX2. wxFileName portableIniFile( GetPortableIniPath() ); ScopedPtr conf_portable( OpenFileConfig( portableIniFile.GetFullPath() ) ); - conf_portable->Write( L"RunWizard", true ); + conf_portable->DeleteEntry(L"RunWizard"); } else { - // Remove the app-local / registry entry conforming to this instance of PCSX2. + // Remove the registry entry "RunWizard" conforming to this instance of PCSX2. ScopedPtr conf_install( OpenInstallSettingsFile() ); conf_install->DeleteEntry(L"RunWizard"); }