Assign mod loader as global manager
This commit is contained in:
parent
a98b9fae95
commit
70e22e1dfb
1 changed files with 4 additions and 1 deletions
|
@ -64,7 +64,10 @@ local function patch_mod_loading_state()
|
||||||
local ModLoader = require("scripts/mods/dml/init")
|
local ModLoader = require("scripts/mods/dml/init")
|
||||||
|
|
||||||
local mod_data = require("scripts/mods/mod_data")
|
local mod_data = require("scripts/mods/mod_data")
|
||||||
self._mod_loader = ModLoader:new(mod_data, self._parent:gui())
|
local mod_loader = ModLoader:new(mod_data, self._parent:gui())
|
||||||
|
|
||||||
|
self._mod_loader = mod_loader
|
||||||
|
Managers.mod = mod_loader
|
||||||
elseif state == "load_mods" and self._mod_loader:update(dt) then
|
elseif state == "load_mods" and self._mod_loader:update(dt) then
|
||||||
log("StateBootLoadMods", "Mods loaded, exiting")
|
log("StateBootLoadMods", "Mods loaded, exiting")
|
||||||
return true, false
|
return true, false
|
||||||
|
|
Loading…
Add table
Reference in a new issue