Skip to content

Commit 4bb17a9

Browse files
authored
force auto update across major versions in forward compat
port from 2ed1886 on 3.x branch
1 parent 47a4b63 commit 4bb17a9

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

loader/src/loader/updater.cpp

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -52,6 +52,11 @@ void updater::fetchLatestGithubRelease(
5252
return then(s_latestGithubRelease.value());
5353
}
5454

55+
//quick hack to make sure it always attempts an update check in forward compat
56+
if(Loader::get()->isForwardCompatMode()) {
57+
force = true;
58+
}
59+
5560
auto version = VersionInfo::parse(
5661
Mod::get()->getSavedValue("latest-version-auto-update-check", std::string("0.0.0"))
5762
);
@@ -374,8 +379,8 @@ void updater::checkForLoaderUpdates() {
374379
return;
375380
}
376381

377-
// don't auto-update major versions
378-
if (ver.getMajor() > Loader::get()->getVersion().getMajor()) {
382+
// don't auto-update major versions when not on forward compat
383+
if (!Loader::get()->isForwardCompatMode() && ver.getMajor() > Loader::get()->getVersion().getMajor()) {
379384
return;
380385
}
381386

0 commit comments

Comments
 (0)