wishful/mods/wisgame/open/open_registration.lua

14 lines
506 B
Lua
Raw Permalink Normal View History

2025-02-07 14:39:37 -05:00
local DIR_DELIM = debug.getinfo(1, "S").source:match("[\\/]")
local modname = core.get_current_modname()
local modpath = core.get_modpath(modname)
local print = c.log
c.dofolder(modpath .. modpath:match("[\\/]") .. "open".. modpath:match("[\\/]").. "open_registration", function(filePath)
if filePath:match("^.+%.(.+)$") == "ini" then
--print(filePath:match("^.+%.(.+)$"))
c.registrate_from_file(table.concat({modpath, "open", "open_registration",filePath}, DIR_DELIM ))
--print("end")
end
end)