-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathmain.lua
More file actions
44 lines (35 loc) · 1.22 KB
/
main.lua
File metadata and controls
44 lines (35 loc) · 1.22 KB
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
33
34
35
36
37
38
39
40
41
42
43
44
if not FooBar then FooBar = {} end
--- file loading taken from Cryptid
local mod_path = "" .. SMODS.current_mod.path
SMODS.current_mod.optional_features = function()
return {
quantum_enhancements = true,
cardareas = {
deck = true
}
}
end
print("Foobar | Loading utils.lua")
assert(SMODS.load_file("module/priority/utils.lua"))()
local files = NFS.getDirectoryItems(mod_path .. "module")
for _, file in ipairs(files) do
if file:match(".lua$") then
print("FooBar | Loading module file " .. file)
assert(SMODS.load_file("module/" .. file))()
end
end
print("Foobar | Loading minigame.lua")
assert(SMODS.load_file("module/priority/minigame.lua"))()
local files = NFS.getDirectoryItems(mod_path .. "module/minigame")
for _, file in ipairs(files) do
if file:match(".lua$") then
print("FooBar | Loading minigame file " .. file)
assert(SMODS.load_file("module/minigame/" .. file))()
end
end
print("Foobar | Loading crossmod.lua")
assert(SMODS.load_file("module/priority/crossmod.lua"))()
---@diagnostic disable-next-line: duplicate-set-field
SMODS.current_mod.description_loc_vars = function()
return { background_colour = G.C.CLEAR, text_colour = G.C.WHITE, scale = 1.2 }
end