mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 08:07: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
|
// Setup flags
|
||||||
const DEFAULT_FLAGS = {
|
const DEFAULT_FLAGS = {
|
||||||
|
PreloadRemotePlay: true,
|
||||||
PreloadUi: false,
|
PreloadUi: false,
|
||||||
EnableXcloudLogging: false,
|
EnableXcloudLogging: false,
|
||||||
|
|
||||||
@ -3775,6 +3776,10 @@ class RemotePlay {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static preload() {
|
||||||
|
RemotePlay.#initialize();
|
||||||
|
}
|
||||||
|
|
||||||
static showDialog() {
|
static showDialog() {
|
||||||
RemotePlay.#initialize();
|
RemotePlay.#initialize();
|
||||||
RemotePlay.#dialog.show();
|
RemotePlay.#dialog.show();
|
||||||
@ -10243,6 +10248,9 @@ function injectSettingsButton($parent) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
$headerFragment.appendChild($remotePlayBtn);
|
$headerFragment.appendChild($remotePlayBtn);
|
||||||
|
|
||||||
|
// Preload Remote Play
|
||||||
|
BX_FLAGS.PreloadRemotePlay && RemotePlay.preload()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user