This commit is contained in:
Mirco Wittrien 2020-02-10 12:04:03 +01:00
parent 04485beebc
commit e875862e47
2 changed files with 3 additions and 3 deletions

View File

@ -977,7 +977,7 @@
strings.push(getExport); strings.push(getExport);
getExport = true; getExport = true;
} }
return InternalBDFDB.findModule("string", JSON.stringify(strings), m => strings.every(string => typeof m == "function" && (m.toString().indexOf(string) > -1 || m.__originalMethod && m.__originalMethod.toString().indexOf(string) > -1 || m.__originalFunction && m.__originalFunction.toString().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && (m.type.toString().indexOf(string) > -1 || m.type.__originalMethod && m.type.__originalMethod.toString().indexOf(string) > -1 || m.type.__originalFunction && m.type.__originalFunction.toString().indexOf(string) > -1)), getExport); return InternalBDFDB.findModule("string", JSON.stringify(strings), m => strings.every(string => typeof m == "function" && (m.toString().indexOf(string) > -1 || m.__originalMethod && m.__originalMethod.toString().indexOf(string) > -1) || BDFDB.ObjectUtils.is(m) && typeof m.type == "function" && (m.type.toString().indexOf(string) > -1 || m.type.__originalMethod && m.type.__originalMethod.toString().indexOf(string) > -1)), getExport);
}; };
BDFDB.ModuleUtils.findByPrototypes = function (...protoprops) { BDFDB.ModuleUtils.findByPrototypes = function (...protoprops) {
protoprops = protoprops.flat(10); protoprops = protoprops.flat(10);
@ -1171,7 +1171,7 @@
return modulefunction == "render" && data.returnValue === undefined ? null : data.returnValue; return modulefunction == "render" && data.returnValue === undefined ? null : data.returnValue;
}; };
for (let key of Object.keys(originalfunction)) module[modulefunction][key] = originalfunction[key]; for (let key of Object.keys(originalfunction)) module[modulefunction][key] = originalfunction[key];
if (!module[modulefunction].__originalFunction) module[modulefunction].__originalFunction = originalfunction; if (!module[modulefunction].__originalMethod) module[modulefunction].__originalMethod = originalfunction.__originalMethod || originalfunction;
module[modulefunction].__isBDFDBpatched = true; module[modulefunction].__isBDFDBpatched = true;
} }
for (let type in patchfunctions) if (typeof patchfunctions[type] == "function") { for (let type in patchfunctions) if (typeof patchfunctions[type] == "function") {

File diff suppressed because one or more lines are too long