mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Re-arrange patches
This commit is contained in:
parent
a2f062d9d5
commit
c8865bd8a0
14
dist/better-xcloud.user.js
vendored
14
dist/better-xcloud.user.js
vendored
@ -4910,8 +4910,7 @@ ${subsVar} = subs;
|
|||||||
"exposeReactCreateComponent",
|
"exposeReactCreateComponent",
|
||||||
"gameCardCustomIcons",
|
"gameCardCustomIcons",
|
||||||
...getPref("ui.imageQuality") < 90 ? [
|
...getPref("ui.imageQuality") < 90 ? [
|
||||||
"setImageQuality",
|
"setImageQuality"
|
||||||
"setBackgroundImageQuality"
|
|
||||||
] : [],
|
] : [],
|
||||||
"modifyPreloadedState",
|
"modifyPreloadedState",
|
||||||
"optimizeGameSlugGenerator",
|
"optimizeGameSlugGenerator",
|
||||||
@ -4953,16 +4952,19 @@ ${subsVar} = subs;
|
|||||||
...BX_FLAGS.EnableXcloudLogging ? [
|
...BX_FLAGS.EnableXcloudLogging ? [
|
||||||
"enableConsoleLogging",
|
"enableConsoleLogging",
|
||||||
"enableXcloudLogger"
|
"enableXcloudLogger"
|
||||||
] : [],
|
|
||||||
...blockSomeNotifications() ? [
|
|
||||||
"changeNotificationsSubscription"
|
|
||||||
] : []
|
] : []
|
||||||
]), hideSections = getPref("ui.hideSections"), HOME_PAGE_PATCH_ORDERS = PatcherUtils.filterPatches([
|
]), hideSections = getPref("ui.hideSections"), HOME_PAGE_PATCH_ORDERS = PatcherUtils.filterPatches([
|
||||||
hideSections.includes("news") && "ignoreNewsSection",
|
hideSections.includes("news") && "ignoreNewsSection",
|
||||||
hideSections.includes("friends") && "ignorePlayWithFriendsSection",
|
hideSections.includes("friends") && "ignorePlayWithFriendsSection",
|
||||||
hideSections.includes("all-games") && "ignoreAllGamesSection",
|
hideSections.includes("all-games") && "ignoreAllGamesSection",
|
||||||
STATES.browser.capabilities.touch && hideSections.includes("touch") && "ignorePlayWithTouchSection",
|
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([
|
]), STREAM_PAGE_PATCH_ORDERS = PatcherUtils.filterPatches([
|
||||||
"exposeInputChannel",
|
"exposeInputChannel",
|
||||||
"patchXcloudTitleInfo",
|
"patchXcloudTitleInfo",
|
||||||
|
@ -1128,7 +1128,6 @@ let PATCH_ORDERS = PatcherUtils.filterPatches([
|
|||||||
|
|
||||||
...(getPref(PrefKey.UI_IMAGE_QUALITY) < 90 ? [
|
...(getPref(PrefKey.UI_IMAGE_QUALITY) < 90 ? [
|
||||||
'setImageQuality',
|
'setImageQuality',
|
||||||
'setBackgroundImageQuality',
|
|
||||||
] : []),
|
] : []),
|
||||||
|
|
||||||
'modifyPreloadedState',
|
'modifyPreloadedState',
|
||||||
@ -1187,10 +1186,6 @@ let PATCH_ORDERS = PatcherUtils.filterPatches([
|
|||||||
'enableConsoleLogging',
|
'enableConsoleLogging',
|
||||||
'enableXcloudLogger',
|
'enableXcloudLogger',
|
||||||
] : []),
|
] : []),
|
||||||
|
|
||||||
...(blockSomeNotifications() ? [
|
|
||||||
'changeNotificationsSubscription',
|
|
||||||
] : []),
|
|
||||||
]);
|
]);
|
||||||
|
|
||||||
const hideSections = getPref(PrefKey.UI_HIDE_SECTIONS);
|
const hideSections = getPref(PrefKey.UI_HIDE_SECTIONS);
|
||||||
@ -1200,6 +1195,14 @@ let HOME_PAGE_PATCH_ORDERS = PatcherUtils.filterPatches([
|
|||||||
hideSections.includes(UiSection.ALL_GAMES) && 'ignoreAllGamesSection',
|
hideSections.includes(UiSection.ALL_GAMES) && 'ignoreAllGamesSection',
|
||||||
STATES.browser.capabilities.touch && hideSections.includes(UiSection.TOUCH) && 'ignorePlayWithTouchSection',
|
STATES.browser.capabilities.touch && hideSections.includes(UiSection.TOUCH) && 'ignorePlayWithTouchSection',
|
||||||
hideSections.some(value => [UiSection.NATIVE_MKB, UiSection.MOST_POPULAR].includes(value)) && 'ignoreSiglSections',
|
hideSections.some(value => [UiSection.NATIVE_MKB, UiSection.MOST_POPULAR].includes(value)) && 'ignoreSiglSections',
|
||||||
|
|
||||||
|
...(getPref(PrefKey.UI_IMAGE_QUALITY) < 90 ? [
|
||||||
|
'setBackgroundImageQuality',
|
||||||
|
] : []),
|
||||||
|
|
||||||
|
...(blockSomeNotifications() ? [
|
||||||
|
'changeNotificationsSubscription',
|
||||||
|
] : []),
|
||||||
]);
|
]);
|
||||||
|
|
||||||
// Only when playing
|
// Only when playing
|
||||||
|
@ -7,6 +7,6 @@ const { productId } = $param$;
|
|||||||
// Remove controller icon
|
// Remove controller icon
|
||||||
supportedInputIcons.shift();
|
supportedInputIcons.shift();
|
||||||
|
|
||||||
if (window.BX_EXPOSED.localCoOpManager.isSupported(productId)) {
|
if (window.BX_EXPOSED.localCoOpManager!.isSupported(productId)) {
|
||||||
supportedInputIcons.push(window.BX_EXPOSED.createReactLocalCoOpIcon);
|
supportedInputIcons.push(window.BX_EXPOSED.createReactLocalCoOpIcon);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user