you may now disable the updater.

This commit is contained in:
Frakits
2025-08-08 13:51:35 +03:00
parent f5b79bb332
commit 0eaffe3ea9
2 changed files with 10 additions and 6 deletions
+1
View File
@@ -196,6 +196,7 @@ class Flags {
public static var DISABLE_WARNING_SCREEN:Bool = true;
public static var DISABLE_TRANSITIONS:Bool = false;
public static var DISABLE_LANGUAGES:Bool = false;
public static var DISABLE_AUTOUPDATER:Bool = false;
@:also(funkin.backend.MusicBeatTransition.script)
public static var DEFAULT_TRANSITION_SCRIPT:String = "";
+9 -6
View File
@@ -157,14 +157,17 @@ class TitleState extends MusicBeatState
function goToMainMenu() {
#if UPDATE_CHECKING
var report = hasCheckedUpdates ? null : funkin.backend.system.updating.UpdateUtil.checkForUpdates();
hasCheckedUpdates = true;
if (!Flags.DISABLE_AUTOUPDATER) {
var report = hasCheckedUpdates ? null : funkin.backend.system.updating.UpdateUtil.checkForUpdates();
hasCheckedUpdates = true;
if (report != null && report.newUpdate) {
FlxG.switchState(new funkin.backend.system.updating.UpdateAvailableScreen(report));
} else {
FlxG.switchState(new MainMenuState());
if (report != null && report.newUpdate) {
FlxG.switchState(new funkin.backend.system.updating.UpdateAvailableScreen(report));
} else {
FlxG.switchState(new MainMenuState());
}
}
else FlxG.switchState(new MainMenuState());
#else
FlxG.switchState(new MainMenuState());
#end