mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 15:47:18 +02:00
Preload Remote Play consoles by default
This commit is contained in:
parent
aebb7888d1
commit
33941a12d1
@ -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()
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user