From 33941a12d1cf1b17517e6a4471dcc35384c27379 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Tue, 2 Apr 2024 07:01:06 +0700 Subject: [PATCH] Preload Remote Play consoles by default --- better-xcloud.user.js | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/better-xcloud.user.js b/better-xcloud.user.js index 39e8c54..07d130d 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 = { + PreloadRemotePlay: true, PreloadUi: false, EnableXcloudLogging: false, @@ -3775,6 +3776,10 @@ class RemotePlay { } } + static preload() { + RemotePlay.#initialize(); + } + static showDialog() { RemotePlay.#initialize(); RemotePlay.#dialog.show(); @@ -10243,6 +10248,9 @@ function injectSettingsButton($parent) { }, }); $headerFragment.appendChild($remotePlayBtn); + + // Preload Remote Play + BX_FLAGS.PreloadRemotePlay && RemotePlay.preload() }