mirror of
https://github.com/SteamDeckHomebrew/decky-loader.git
synced 2026-07-11 20:01:57 +00:00
add * option for route in itempatches
This commit is contained in:
@@ -137,7 +137,14 @@ class MenuHook extends Logger {
|
|||||||
const oType = itemList[index].type;
|
const oType = itemList[index].type;
|
||||||
itemList[index] = patch({
|
itemList[index] = patch({
|
||||||
...cloneElement(itemList[index]),
|
...cloneElement(itemList[index]),
|
||||||
type: (props) => createElement(oType, props),
|
type: (props: any) => createElement(oType, props),
|
||||||
|
});
|
||||||
|
});
|
||||||
|
itemPatches.get('*')?.forEach((patch) => {
|
||||||
|
const oType = itemList[index].type;
|
||||||
|
itemList[index] = patch({
|
||||||
|
...cloneElement(itemList[index]),
|
||||||
|
type: (props: any) => createElement(oType, props),
|
||||||
});
|
});
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user