mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-06-17 08:47:49 +00:00
Fix fullscreen route inject issues caused by Feb. 17th beta. (#372)
* remove gamepad ui * Refactor
This commit is contained in:
@@ -123,11 +123,9 @@ class RouterHook extends Logger {
|
|||||||
this.wrapperPatch = afterPatch(this.gamepadWrapper, 'render', (_: any, ret: any) => {
|
this.wrapperPatch = afterPatch(this.gamepadWrapper, 'render', (_: any, ret: any) => {
|
||||||
if (ret?.props?.children?.props?.children?.length == 5 || ret?.props?.children?.props?.children?.length == 4) {
|
if (ret?.props?.children?.props?.children?.length == 5 || ret?.props?.children?.props?.children?.length == 4) {
|
||||||
const idx = ret?.props?.children?.props?.children?.length == 4 ? 1 : 2;
|
const idx = ret?.props?.children?.props?.children?.length == 4 ? 1 : 2;
|
||||||
if (
|
const potentialSettingsRootString =
|
||||||
ret.props.children.props.children[idx]?.props?.children?.[0]?.type?.type
|
ret.props.children.props.children[idx]?.props?.children?.[0]?.type?.type?.toString() || '';
|
||||||
?.toString()
|
if (potentialSettingsRootString?.includes('Settings.Root()')) {
|
||||||
?.includes('GamepadUI.Settings.Root()')
|
|
||||||
) {
|
|
||||||
if (!this.router) {
|
if (!this.router) {
|
||||||
this.router = ret.props.children.props.children[idx]?.props?.children?.[0]?.type;
|
this.router = ret.props.children.props.children[idx]?.props?.children?.[0]?.type;
|
||||||
this.routerPatch = afterPatch(this.router, 'type', (_: any, ret: any) => {
|
this.routerPatch = afterPatch(this.router, 'type', (_: any, ret: any) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user