From 0eaffe3ea9c86570170674e220846f9b76cc9404 Mon Sep 17 00:00:00 2001 From: Frakits Date: Fri, 8 Aug 2025 13:51:35 +0300 Subject: [PATCH] you may now disable the updater. --- source/funkin/backend/system/Flags.hx | 1 + source/funkin/menus/TitleState.hx | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) 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