Skip to content

Commit

Permalink
fix config loading being broken
Browse files Browse the repository at this point in the history
  • Loading branch information
Aurelius7309 committed Jul 21, 2024
1 parent 6e13022 commit 8689ca8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/ui.lua
Original file line number Diff line number Diff line change
Expand Up @@ -590,7 +590,7 @@ end
SMODS.id = 'Steamodded'

function SMODS.load_mod_config(mod)
local config = load(NFS.read(('config/%s.jkr'):format(SMODS.MODS_DIR, mod.id)) or 'return {}', ('=[SMODS %s "config"]'):format(mod.id))()
local config = load(NFS.read(('config/%s.jkr'):format(mod.id)) or 'return {}', ('=[SMODS %s "config"]'):format(mod.id))()
local default_config = load(NFS.read(('%sconfig.lua'):format(mod.path)) or 'return {}', ('=[SMODS %s "default_config"]'):format(mod.id))()
mod.config = {}
for k, v in pairs(default_config) do mod.config[k] = v end
Expand Down

0 comments on commit 8689ca8

Please sign in to comment.