diff --git a/patches.js b/patches.js index 7d59a59..bff6ed7 100644 --- a/patches.js +++ b/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) { - -} \ No newline at end of file +// PatchesRegistry.regSpecialEvent("test"); +// PatchesRegistry.addPatch(function (input) { +// var output = input; +// return output; +// }) \ No newline at end of file