mirror of
https://github.com/libretro/ppsspp.git
synced 2025-02-16 15:08:34 +00:00
Don't show upgrade notifications if PPSSPP is too new, regardless of iRunCount.
This commit is contained in:
parent
5c9722c873
commit
37b8f62997
@ -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 = "";
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user