Merge branch 'dev' into generated-pcm-stream

This commit is contained in:
MihailRis
2025-11-10 12:44:49 +03:00
56 changed files with 609 additions and 242 deletions
+7
View File
@@ -2,7 +2,14 @@ local events = {
handlers = {}
}
local __parse_path = parse_path
local __pack_is_installed = pack.is_installed
function events.on(event, func)
local prefix = __parse_path(event)
if prefix ~= "core" and not __pack_is_installed(prefix) then
error("pack prefix required")
end
if events.handlers[event] == nil then
events.handlers[event] = {}
end