13 lines
506 B
Lua
13 lines
506 B
Lua
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)
|
|
|
|
|