mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-07-31 10:26:42 +02:00
Optimize Patcher class
This commit is contained in:
@@ -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];
|
||||
|
Reference in New Issue
Block a user