diff --git a/source/funkin/backend/system/Flags.hx b/source/funkin/backend/system/Flags.hx index 7e4d29bc..ce1811f1 100644 --- a/source/funkin/backend/system/Flags.hx +++ b/source/funkin/backend/system/Flags.hx @@ -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 = ""; diff --git a/source/funkin/menus/TitleState.hx b/source/funkin/menus/TitleState.hx index 016fea04..f3ea3d78 100644 --- a/source/funkin/menus/TitleState.hx +++ b/source/funkin/menus/TitleState.hx @@ -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