mirror of https://github.com/PCSX2/pcsx2.git
1.4.0 version string is now saved to (Win) registry and portable.ini. We use this to detect older configuration files and start the First Time Wizard if necessary. This also prevents all older .inis (PCSX2, plugins) from being used in 1.4.0.
This commit should probably not be merged into master, but stay on this branch. A nicer way to handle upgrades is planned.
This commit is contained in:
parent
22880339b6
commit
8ba761d334
|
@ -56,7 +56,8 @@ namespace PathDefs
|
|||
|
||||
const wxDirName& Settings()
|
||||
{
|
||||
static const wxDirName retval( L"inis" );
|
||||
static const wxDirName retval(wxsFormat(L"inis_%d.%d.%d",
|
||||
PCSX2_VersionHi, PCSX2_VersionMid, PCSX2_VersionLo));
|
||||
return retval;
|
||||
}
|
||||
|
||||
|
|
|
@ -289,13 +289,15 @@ void Pcsx2App::EstablishAppUserMode()
|
|||
// Wizard is only run once. The status of the wizard having been run is stored in
|
||||
// the installation ini file, which can be either the portable install (useful for admins)
|
||||
// or the registry/user local documents position.
|
||||
|
||||
int version;
|
||||
conf_install->Read(L"Version", &version, 0);
|
||||
bool runWiz;
|
||||
conf_install->Read( L"RunWizard", &runWiz, true );
|
||||
|
||||
App_LoadInstallSettings( conf_install );
|
||||
int pcsx2Ver = PCSX2_VersionHi * 100 + PCSX2_VersionMid * 10 + PCSX2_VersionLo;
|
||||
|
||||
if( !Startup.ForceWizard && !runWiz )
|
||||
if( !Startup.ForceWizard && !runWiz && version == pcsx2Ver)
|
||||
{
|
||||
AppConfig_OnChangedSettingsFolder( false );
|
||||
return;
|
||||
|
@ -310,5 +312,6 @@ void Pcsx2App::EstablishAppUserMode()
|
|||
|
||||
// Wizard completed successfully, so let's not torture the user with this crap again!
|
||||
conf_install->Write( L"RunWizard", false );
|
||||
conf_install->Write(L"Version", pcsx2Ver);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue