Don't show upgrade notifications if PPSSPP is too new, regardless of iRunCount.

This commit is contained in:
The Dax 2014-08-16 16:31:07 -04:00
parent 5c9722c873
commit 37b8f62997

View File

@ -780,7 +780,15 @@ void Config::Load(const char *iniFileName, const char *controllerIniFilename) {
fAnalogStickY /= screen_height;
}
if (dismissedVersion == upgradeVersion) {
const char *gitVer = PPSSPP_GIT_VERSION;
Version installed(gitVer);
Version upgrade(upgradeVersion);
const bool versionsValid = installed.IsValid() && upgrade.IsValid();
// Do this regardless of iRunCount to prevent a silly bug where one might use an older
// build of PPSSPP, receive an upgrade notice, then start a newer version, and still receive the upgrade notice,
// even if said newer version is >= the upgrade found online.
if ((dismissedVersion == upgradeVersion) || (versionsValid && (installed >= upgrade))) {
upgradeMessage = "";
}