mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Disable Onboarding screen
This commit is contained in:
parent
0f360d4be1
commit
6b2412ff27
@ -738,6 +738,26 @@ true` + text;
|
|||||||
str = str.substring(0, index) + 'true ? null :' + str.substring(index);
|
str = str.substring(0, index) + 'true ? null :' + str.substring(index);
|
||||||
return str;
|
return str;
|
||||||
},
|
},
|
||||||
|
|
||||||
|
// Override Storage.getSettings()
|
||||||
|
overrideStorageGetSettings(str: string) {
|
||||||
|
const text = '}getSetting(e){';
|
||||||
|
if (!str.includes(text)) {
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
|
||||||
|
const newCode = `
|
||||||
|
// console.log('setting', this.baseStorageKey, e);
|
||||||
|
if (this.baseStorageKey in window.BX_EXPOSED.overrideSettings) {
|
||||||
|
const settings = window.BX_EXPOSED.overrideSettings[this.baseStorageKey];
|
||||||
|
if (e in settings) {
|
||||||
|
return settings[e];
|
||||||
|
}
|
||||||
|
}
|
||||||
|
`;
|
||||||
|
str = str.replace(text, text + newCode);
|
||||||
|
return str;
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
let PATCH_ORDERS: PatchArray = [
|
let PATCH_ORDERS: PatchArray = [
|
||||||
@ -759,6 +779,8 @@ let PATCH_ORDERS: PatchArray = [
|
|||||||
|
|
||||||
'enableTvRoutes',
|
'enableTvRoutes',
|
||||||
|
|
||||||
|
'overrideStorageGetSettings',
|
||||||
|
|
||||||
getPref(PrefKey.UI_LAYOUT) !== 'default' && 'websiteLayout',
|
getPref(PrefKey.UI_LAYOUT) !== 'default' && 'websiteLayout',
|
||||||
getPref(PrefKey.LOCAL_CO_OP_ENABLED) && 'supportLocalCoOp',
|
getPref(PrefKey.LOCAL_CO_OP_ENABLED) && 'supportLocalCoOp',
|
||||||
getPref(PrefKey.GAME_FORTNITE_FORCE_CONSOLE) && 'forceFortniteConsole',
|
getPref(PrefKey.GAME_FORTNITE_FORCE_CONSOLE) && 'forceFortniteConsole',
|
||||||
|
@ -109,4 +109,10 @@ export const BxExposed = {
|
|||||||
|
|
||||||
handleControllerShortcut: ControllerShortcut.handle,
|
handleControllerShortcut: ControllerShortcut.handle,
|
||||||
resetControllerShortcut: ControllerShortcut.reset,
|
resetControllerShortcut: ControllerShortcut.reset,
|
||||||
|
|
||||||
|
overrideSettings: {
|
||||||
|
'Tv_settings': {
|
||||||
|
hasCompletedOnboarding: true,
|
||||||
|
},
|
||||||
|
},
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user