mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-24 14:41:18 -09:00
push
This commit is contained in:
parent
9fcac52d28
commit
0321c07978
15
patches.js
15
patches.js
@ -5,15 +5,14 @@ class PatchesRegistry {
|
|||||||
return "globalThis.modapi_specialevents = [" + PatchesRegistry.patchedEventNames.flatMap(x=>`\`${x}\``).join(",") + "]"
|
return "globalThis.modapi_specialevents = [" + PatchesRegistry.patchedEventNames.flatMap(x=>`\`${x}\``).join(",") + "]"
|
||||||
}
|
}
|
||||||
static addPatch(fn) {
|
static addPatch(fn) {
|
||||||
patchFns.push(fn);
|
PatchesRegistry.patchFns.push(fn);
|
||||||
}
|
}
|
||||||
static addSpecialEvent(x) {
|
static regSpecialEvent(x) {
|
||||||
PatchesRegistry.patchedEventNames.push(x);
|
PatchesRegistry.patchedEventNames.push(x);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
function addPatch() {
|
// PatchesRegistry.regSpecialEvent("test");
|
||||||
|
// PatchesRegistry.addPatch(function (input) {
|
||||||
}
|
// var output = input;
|
||||||
function addSpecialEvent(eventName) {
|
// return output;
|
||||||
|
// })
|
||||||
}
|
|
Loading…
x
Reference in New Issue
Block a user