Fix "patchPollGamepads" patch

This commit is contained in:
redphx
2025-06-06 07:27:34 +07:00
parent 3a3fc77e83
commit fad91d14a6
3 changed files with 3 additions and 3 deletions

View File

@@ -5240,7 +5240,7 @@ var LOG_TAG2 = "Patcher", PATCHES = {
return str.replace(text, "this.shouldCollectStats=!1");
},
patchPollGamepads(str) {
let index = str.indexOf("},this.pollGamepads=()=>{");
let index = str.indexOf('()(this,"pollGamepads",');
if (index < 0) return !1;
let setTimeoutIndex = str.indexOf("setTimeout(this.pollGamepads", index);
if (setTimeoutIndex < 0) return !1;