Re-arrange patches

This commit is contained in:
redphx
2025-01-16 20:26:15 +07:00
parent a2f062d9d5
commit c8865bd8a0
3 changed files with 17 additions and 12 deletions

View File

@@ -4910,8 +4910,7 @@ ${subsVar} = subs;
"exposeReactCreateComponent",
"gameCardCustomIcons",
...getPref("ui.imageQuality") < 90 ? [
"setImageQuality",
"setBackgroundImageQuality"
"setImageQuality"
] : [],
"modifyPreloadedState",
"optimizeGameSlugGenerator",
@@ -4953,16 +4952,19 @@ ${subsVar} = subs;
...BX_FLAGS.EnableXcloudLogging ? [
"enableConsoleLogging",
"enableXcloudLogger"
] : [],
...blockSomeNotifications() ? [
"changeNotificationsSubscription"
] : []
]), hideSections = getPref("ui.hideSections"), HOME_PAGE_PATCH_ORDERS = PatcherUtils.filterPatches([
hideSections.includes("news") && "ignoreNewsSection",
hideSections.includes("friends") && "ignorePlayWithFriendsSection",
hideSections.includes("all-games") && "ignoreAllGamesSection",
STATES.browser.capabilities.touch && hideSections.includes("touch") && "ignorePlayWithTouchSection",
hideSections.some((value) => ["native-mkb", "most-popular"].includes(value)) && "ignoreSiglSections"
hideSections.some((value) => ["native-mkb", "most-popular"].includes(value)) && "ignoreSiglSections",
...getPref("ui.imageQuality") < 90 ? [
"setBackgroundImageQuality"
] : [],
...blockSomeNotifications() ? [
"changeNotificationsSubscription"
] : []
]), STREAM_PAGE_PATCH_ORDERS = PatcherUtils.filterPatches([
"exposeInputChannel",
"patchXcloudTitleInfo",