From bd8aedaf30edc445ab679211e36746a9e327d713 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Sat, 6 Apr 2024 17:01:38 +0700 Subject: [PATCH] Add CheckForUpdate flag --- better-xcloud.user.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index aa002c6..e32a42a 100644 --- a/better-xcloud.user.js +++ b/better-xcloud.user.js @@ -21,6 +21,7 @@ const SCRIPT_HOME = 'https://github.com/redphx/better-xcloud'; // Setup flags const DEFAULT_FLAGS = { + CheckForUpdate: true, PreloadRemotePlay: true, PreloadUi: false, EnableXcloudLogging: false, @@ -8356,7 +8357,7 @@ if (gamepadFound) { function checkForUpdate() { - const CHECK_INTERVAL_SECONDS = 4 * 3600; // check every 4 hours + const CHECK_INTERVAL_SECONDS = 2 * 3600; // check every 2 hours const currentVersion = getPref(Preferences.CURRENT_VERSION); const lastCheck = getPref(Preferences.LAST_UPDATE_CHECK); @@ -11766,7 +11767,7 @@ window.addEventListener(BxEvent.STREAM_STOPPED, e => { PreloadedState.override(); // Check for Update -checkForUpdate(); +BX_FLAGS.CheckForUpdate && checkForUpdate(); // Monkey patches if (getPref(Preferences.AUDIO_ENABLE_VOLUME_CONTROL)) {