Skip to content

Commit 0eaffe3

Browse files
committed
you may now disable the updater.
1 parent f5b79bb commit 0eaffe3

File tree

2 files changed

+11
-7
lines changed

2 files changed

+11
-7
lines changed

source/funkin/backend/system/Flags.hx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff 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 = "";

source/funkin/menus/TitleState.hx

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)