mirror of
https://github.com/eaglerforge/EaglerForgeInjector
synced 2025-07-25 23:16:56 -09:00
19 lines
476 B
JavaScript
19 lines
476 B
JavaScript
class PatchesRegistry {
|
|
static patchFns = []
|
|
static patchedEventNames = []
|
|
static getEventInjectorCode() {
|
|
return "globalThis.modapi_specialevents = [" + PatchesRegistry.patchedEventNames.flatMap(x=>`\`${x}\``).join(",") + "]"
|
|
}
|
|
static addPatch(fn) {
|
|
patchFns.push(fn);
|
|
}
|
|
static addSpecialEvent(x) {
|
|
PatchesRegistry.patchedEventNames.push(x);
|
|
}
|
|
}
|
|
function addPatch() {
|
|
|
|
}
|
|
function addSpecialEvent(eventName) {
|
|
|
|
} |