Pull ModLoader in #156
1 changed files with 3 additions and 6 deletions
|
@ -115,7 +115,6 @@ log("mod_main", "'scripts/main' loaded")
|
||||||
-- have been initialized.
|
-- have been initialized.
|
||||||
-- This is where `ModLoader` will finally start loading mods.
|
-- This is where `ModLoader` will finally start loading mods.
|
||||||
local function patch_mod_loading_state()
|
local function patch_mod_loading_state()
|
||||||
local StateBootSubStateBase = require("scripts/game_states/boot/state_boot_sub_state_base")
|
|
||||||
local StateBootLoadDML = class("StateBootLoadDML", "StateBootSubStateBase")
|
local StateBootLoadDML = class("StateBootLoadDML", "StateBootSubStateBase")
|
||||||
local StateGameLoadMods = class("StateGameLoadMods")
|
local StateGameLoadMods = class("StateGameLoadMods")
|
||||||
|
|
||||||
|
@ -132,7 +131,7 @@ local function patch_mod_loading_state()
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
StateBootLoadDML._state_update = function(self, dt)
|
StateBootLoadDML._state_update = function(self, _)
|
||||||
local package_manager = self._package_manager
|
local package_manager = self._package_manager
|
||||||
|
|
||||||
if package_manager:update() then
|
if package_manager:update() then
|
||||||
|
@ -157,9 +156,7 @@ local function patch_mod_loading_state()
|
||||||
self._next_state_params = params
|
self._next_state_params = params
|
||||||
end
|
end
|
||||||
|
|
||||||
function StateGameLoadMods:update(main_dt)
|
function StateGameLoadMods:update(_)
|
||||||
local state = self._loading_state
|
|
||||||
|
|
||||||
-- We're relying on the fact that DML internally makes sure
|
-- We're relying on the fact that DML internally makes sure
|
||||||
-- that `Managers.mod:update()` is being called appropriately.
|
-- that `Managers.mod:update()` is being called appropriately.
|
||||||
-- The implementation as of this writing is to hook `StateGame.update`.
|
-- The implementation as of this writing is to hook `StateGame.update`.
|
||||||
|
|
Loading…
Add table
Reference in a new issue