mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Fix getting Remote Play consoles multiple times
This commit is contained in:
parent
33941a12d1
commit
dc56e32357
@ -3766,8 +3766,11 @@ class RemotePlay {
|
|||||||
REMOTE_PLAY_SERVER = server;
|
REMOTE_PLAY_SERVER = server;
|
||||||
|
|
||||||
callback();
|
callback();
|
||||||
break;
|
|
||||||
} catch (e) {}
|
} catch (e) {}
|
||||||
|
|
||||||
|
if (RemotePlay.#CONSOLES) {
|
||||||
|
break;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// None of the servers worked
|
// None of the servers worked
|
||||||
@ -10248,9 +10251,6 @@ function injectSettingsButton($parent) {
|
|||||||
},
|
},
|
||||||
});
|
});
|
||||||
$headerFragment.appendChild($remotePlayBtn);
|
$headerFragment.appendChild($remotePlayBtn);
|
||||||
|
|
||||||
// Preload Remote Play
|
|
||||||
BX_FLAGS.PreloadRemotePlay && RemotePlay.preload()
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
@ -11712,6 +11712,11 @@ BX_FLAGS.PreloadUi && setupBxUi();
|
|||||||
|
|
||||||
disablePwa();
|
disablePwa();
|
||||||
|
|
||||||
|
// Preload Remote Play
|
||||||
|
if (getPref(Preferences.REMOTE_PLAY_ENABLED)) {
|
||||||
|
BX_FLAGS.PreloadRemotePlay && RemotePlay.preload();
|
||||||
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (getPref(Preferences.CONTROLLER_ENABLE_SHORTCUTS)) {
|
if (getPref(Preferences.CONTROLLER_ENABLE_SHORTCUTS)) {
|
||||||
GamepadHandler.initialSetup();
|
GamepadHandler.initialSetup();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user