From be51199279a3fcba2a1f1b90e702afb1e356b514 Mon Sep 17 00:00:00 2001 From: redphx <96280+redphx@users.noreply.github.com> Date: Thu, 29 May 2025 20:54:17 +0700 Subject: [PATCH] Fix built scripts --- dist/better-xcloud.pretty.user.js | 2 +- dist/better-xcloud.user.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/better-xcloud.pretty.user.js b/dist/better-xcloud.pretty.user.js index 5c0bf48..a09523d 100644 --- a/dist/better-xcloud.pretty.user.js +++ b/dist/better-xcloud.pretty.user.js @@ -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){"; diff --git a/dist/better-xcloud.user.js b/dist/better-xcloud.user.js index 7f9f36a..69a7f45 100755 --- a/dist/better-xcloud.user.js +++ b/dist/better-xcloud.user.js @@ -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}"));