mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-07 16:17:20 +02:00
Optimize Patcher class
This commit is contained in:
parent
0a851e5417
commit
5eba0f0ed7
@ -4408,11 +4408,12 @@ class Patcher {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
for (const patchName in Patcher.#PATCHES) {
|
|
||||||
const func = item[1][id];
|
const func = item[1][id];
|
||||||
let funcStr = func.toString();
|
const funcStr = func.toString();
|
||||||
|
|
||||||
const patchedFuncStr = Patcher.#PATCHES[patchName].call(null, funcStr);
|
let patchedFuncStr;
|
||||||
|
for (const patchName in Patcher.#PATCHES) {
|
||||||
|
patchedFuncStr = Patcher.#PATCHES[patchName].call(null, funcStr);
|
||||||
if (patchedFuncStr) {
|
if (patchedFuncStr) {
|
||||||
item[1][id] = eval(patchedFuncStr);
|
item[1][id] = eval(patchedFuncStr);
|
||||||
delete Patcher.#PATCHES[patchName];
|
delete Patcher.#PATCHES[patchName];
|
||||||
|
Loading…
x
Reference in New Issue
Block a user