Skip to content

Commit

Permalink
fix(decky): fix decky on latest beta
Browse files Browse the repository at this point in the history
Thanks to AAGaming and McDjuady for fixing this stuff.
  • Loading branch information
RodoMa92 committed May 10, 2023
1 parent 8fb35e3 commit 74a7cba
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/deck-components/Menu.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,8 +41,8 @@ export const MenuGroup: FC<MenuGroupProps> = findModuleChild((m) => {

for (let prop in m) {
if (
(m[prop]?.toString()?.includes('bInGamepadUI:') &&
fakeRenderComponent(() => m[prop]())?.type?.prototype?.RenderSubMenu) ||
(m[prop]?.toString()?.includes?.('bInGamepadUI:') &&
fakeRenderComponent(() => m[prop]({overview: {appid: 7}}))?.type?.prototype?.RenderSubMenu) ||
(m[prop]?.prototype?.RenderSubMenu && m[prop]?.prototype?.ShowSubMenu)
) {
return m[prop];
Expand Down
2 changes: 1 addition & 1 deletion src/deck-components/static-classes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,7 @@ export const gamepadDialogClasses: GamepadDialogClasses = findModule(
(mod) => typeof mod === 'object' && mod?.GamepadDialogContent?.includes('gamepaddialog'),
);
export const quickAccessControlsClasses: QuickAccessControlsClasses = findModule(
(mod) => typeof mod === 'object' && mod?.PanelSection?.includes('quickaccesscontrols'),
(mod) => typeof mod === 'object' && typeof mod?.PanelSection === 'string' && mod?.PanelSection?.includes('quickaccesscontrols'),
);
export const updaterFieldClasses: UpdaterFieldClasses = findModule(
(mod) => typeof mod === 'object' && mod?.OOBEUpdateStatusContainer?.includes('updaterfield'),
Expand Down

0 comments on commit 74a7cba

Please sign in to comment.