-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
23 lines (20 loc) · 740 Bytes
/
main.lua
File metadata and controls
23 lines (20 loc) · 740 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
local mod_path = SMODS.current_mod.path
-- guess where i stole these from :3
local files = NFS.getDirectoryItems(mod_path .. "items")
for _, file in ipairs(files) do
print("Nanumod Loading file " .. file)
local f, err = SMODS.load_file("items/" .. file)
if err then
error(err) --Steamodded actually does a really good job of displaying this info! So we don't need to do anything else.
end
f()
end
local files = NFS.getDirectoryItems(mod_path .. "lib")
for _, file in ipairs(files) do
print("Nanumod Loading library file " .. file)
local f, err = SMODS.load_file("lib/" .. file)
if err then
error(err) --Steamodded actually does a really good job of displaying this info! So we don't need to do anything else.
end
f()
end