File tree Expand file tree Collapse file tree 2 files changed +11
-7
lines changed
Expand file tree Collapse file tree 2 files changed +11
-7
lines changed Original file line number Diff line number Diff line change @@ -196,6 +196,7 @@ class Flags {
196196 public static var DISABLE_WARNING_SCREEN : Bool = true ;
197197 public static var DISABLE_TRANSITIONS : Bool = false ;
198198 public static var DISABLE_LANGUAGES : Bool = false ;
199+ public static var DISABLE_AUTOUPDATER : Bool = false ;
199200
200201 @:also (funkin.backend. MusicBeatTransition .script )
201202 public static var DEFAULT_TRANSITION_SCRIPT : String = " " ;
Original file line number Diff line number Diff line change @@ -157,14 +157,17 @@ class TitleState extends MusicBeatState
157157
158158 function goToMainMenu () {
159159 #if UPDATE_CHECKING
160- var report = hasCheckedUpdates ? null : funkin.backend.system.updating. UpdateUtil .checkForUpdates ();
161- hasCheckedUpdates = true ;
162-
163- if (report != null && report .newUpdate ) {
164- FlxG .switchState (new funkin.backend.system.updating. UpdateAvailableScreen (report ));
165- } else {
166- FlxG .switchState (new MainMenuState ());
160+ if (! Flags .DISABLE_AUTOUPDATER ) {
161+ var report = hasCheckedUpdates ? null : funkin.backend.system.updating. UpdateUtil .checkForUpdates ();
162+ hasCheckedUpdates = true ;
163+
164+ if (report != null && report .newUpdate ) {
165+ FlxG .switchState (new funkin.backend.system.updating. UpdateAvailableScreen (report ));
166+ } else {
167+ FlxG .switchState (new MainMenuState ());
168+ }
167169 }
170+ else FlxG .switchState (new MainMenuState ());
168171 #else
169172 FlxG .switchState (new MainMenuState ());
170173 #end
You can’t perform that action at this time.
0 commit comments