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