mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-01 13:17:20 +02:00
Fix built scripts
This commit is contained in:
parent
e276d9a2b9
commit
be51199279
2
dist/better-xcloud.pretty.user.js
vendored
2
dist/better-xcloud.pretty.user.js
vendored
@ -5258,7 +5258,7 @@ logFunc(logTag, '//', logMessage);
|
||||
if (index < 0) return !1;
|
||||
let constIndex = PatcherUtils.lastIndexOf(str, "const[", index, 100);
|
||||
if (constIndex < 0) return !1;
|
||||
return str = PatcherUtils.insertAt(str, constIndex, "debugger;e();return null;"), console.log(str), str;
|
||||
return str = PatcherUtils.insertAt(str, constIndex, "e();return null;"), str;
|
||||
},
|
||||
patchUpdateInputConfigurationAsync(str) {
|
||||
let text = "async updateInputConfigurationAsync(e){";
|
||||
|
2
dist/better-xcloud.user.js
vendored
2
dist/better-xcloud.user.js
vendored
@ -161,7 +161,7 @@ var LOG_TAG2 = "Patcher", PATCHES = {disableAiTrack(str) {let text = ".track=fun
|
||||
const [logTag, logLevel, logMessage] = Array.from(arguments);
|
||||
const logFunc = [console.debug, console.log, console.warn, console.error][logLevel];
|
||||
logFunc(logTag, '//', logMessage);
|
||||
`;return str = PatcherUtils.insertAt(str, index, newCode), str;},enableConsoleLogging(str) {let text = "static isConsoleLoggingAllowed(){";if (!str.includes(text)) return !1;return str = str.replaceAll(text, text + "return true;"), str;},playVibration(str) {let text = "}playVibration(e){";if (!str.includes(text)) return !1;return str = str.replaceAll(text, text + vibration_adjust_default), str;},disableGamepadDisconnectedScreen(str) {let index = str.indexOf('"GamepadDisconnected_Title",');if (index < 0) return !1;let constIndex = PatcherUtils.lastIndexOf(str, "const[", index, 100);if (constIndex < 0) return !1;return str = PatcherUtils.insertAt(str, constIndex, "debugger;e();return null;"), console.log(str), str;},patchUpdateInputConfigurationAsync(str) {let text = "async updateInputConfigurationAsync(e){";if (!str.includes(text)) return !1;let newCode = "e.enableTouchInput = true;";return str = str.replace(text, text + newCode), str;},disableStreamGate(str) {let index = str.indexOf('case"partially-ready":');if (index < 0) return !1;let bracketIndex = str.indexOf("=>{", index - 150) + 3;return str = str.substring(0, bracketIndex) + "return 0;" + str.substring(bracketIndex), str;},exposeTouchLayoutManager(str) {let text = "this._perScopeLayoutsStream=new";if (!str.includes(text)) return !1;let newCode = `
|
||||
`;return str = PatcherUtils.insertAt(str, index, newCode), str;},enableConsoleLogging(str) {let text = "static isConsoleLoggingAllowed(){";if (!str.includes(text)) return !1;return str = str.replaceAll(text, text + "return true;"), str;},playVibration(str) {let text = "}playVibration(e){";if (!str.includes(text)) return !1;return str = str.replaceAll(text, text + vibration_adjust_default), str;},disableGamepadDisconnectedScreen(str) {let index = str.indexOf('"GamepadDisconnected_Title",');if (index < 0) return !1;let constIndex = PatcherUtils.lastIndexOf(str, "const[", index, 100);if (constIndex < 0) return !1;return str = PatcherUtils.insertAt(str, constIndex, "e();return null;"), str;},patchUpdateInputConfigurationAsync(str) {let text = "async updateInputConfigurationAsync(e){";if (!str.includes(text)) return !1;let newCode = "e.enableTouchInput = true;";return str = str.replace(text, text + newCode), str;},disableStreamGate(str) {let index = str.indexOf('case"partially-ready":');if (index < 0) return !1;let bracketIndex = str.indexOf("=>{", index - 150) + 3;return str = str.substring(0, bracketIndex) + "return 0;" + str.substring(bracketIndex), str;},exposeTouchLayoutManager(str) {let text = "this._perScopeLayoutsStream=new";if (!str.includes(text)) return !1;let newCode = `
|
||||
true;
|
||||
window.BX_EXPOSED["touchLayoutManager"] = this;
|
||||
window.dispatchEvent(new Event("${BxEvent.TOUCH_LAYOUT_MANAGER_READY}"));
|
||||
|
Loading…
x
Reference in New Issue
Block a user