forked from Foo54/FooBar
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.lua
More file actions
32 lines (27 loc) · 754 Bytes
/
main.lua
File metadata and controls
32 lines (27 loc) · 754 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
--- STEAMODDED HEADER
--- MOD_NAME: FooBar
--- MOD_ID: foobar
--- PREFIX: foobar
--- MOD_AUTHOR: [Foo54]
--- MOD_DESCRIPTION: Foo54's own creation where I put random ideas I have in it.
--- LOADER_VERSION_GEQ: 1.0.0
--- VERSION: 1.0.0
--- BADGE_COLOR: 222222
if not FooBar then FooBar = {} end
--- file loading taken from Cryptid
local mod_path = "" .. SMODS.current_mod.path
print("Foobar | Loading utils.lua")
local f, err = SMODS.load_file("utils.lua")
if err then
error(err)
end
f()
local files = NFS.getDirectoryItems(mod_path .. "module")
for _, file in ipairs(files) do
print("FooBar | Loading module file " .. file)
local f, err = SMODS.load_file("module/" .. file)
if err then
error(err)
end
f()
end