you may now disable the updater.
This commit is contained in:
@@ -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 = "";
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user