mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-23 06:01:38 -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(",") + "]"
|
||||
}
|
||||
static addPatch(fn) {
|
||||
patchFns.push(fn);
|
||||
PatchesRegistry.patchFns.push(fn);
|
||||
}
|
||||
static addSpecialEvent(x) {
|
||||
static regSpecialEvent(x) {
|
||||
PatchesRegistry.patchedEventNames.push(x);
|
||||
}
|
||||
}
|
||||
function addPatch() {
|
||||
|
||||
}
|
||||
function addSpecialEvent(eventName) {
|
||||
|
||||
}
|
||||
// PatchesRegistry.regSpecialEvent("test");
|
||||
// PatchesRegistry.addPatch(function (input) {
|
||||
// var output = input;
|
||||
// return output;
|
||||
// })
|
Loading…
x
Reference in New Issue
Block a user