mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-07 13:48:27 +02:00
Fix "patchPollGamepads" patch
This commit is contained in:
2
dist/better-xcloud.pretty.user.js
vendored
2
dist/better-xcloud.pretty.user.js
vendored
@@ -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;
|
||||
|
Reference in New Issue
Block a user