mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-06-22 06:56:31 -04:00
Move mod init earlier
Probably necessary if we're gonna be replacing game files etc
This commit is contained in:
@@ -223,8 +223,6 @@ void main01(void) {
|
||||
OSReport("Calling cDyl_InitAsync()...\n");
|
||||
cDyl_InitAsync();
|
||||
|
||||
dusk::ModLoader::instance().init();
|
||||
|
||||
g_mDoAud_audioHeap = JKRCreateSolidHeap(audioHeapSize, JKRGetCurrentHeap(), false);
|
||||
JKRHEAP_NAME(g_mDoAud_audioHeap, "g_mDoAud_audioHeap");
|
||||
|
||||
@@ -745,6 +743,9 @@ int game_main(int argc, char* argv[]) {
|
||||
dusk::ModLoader::instance().setModsDir(dusk::ConfigPath / "mods");
|
||||
}
|
||||
|
||||
DuskLog.info("Initializing mods...");
|
||||
dusk::ModLoader::instance().init();
|
||||
|
||||
OSReport("Starting main01 (Game Loop)...\n");
|
||||
main01();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user