From 5cca830592668d87253bbda20a50745acd9565d9 Mon Sep 17 00:00:00 2001 From: Maschell Date: Tue, 3 Jan 2023 22:34:56 +0100 Subject: [PATCH] Actually order the modules by dependencies instead of throwing the result straight away. --- wumsloader/src/entry.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wumsloader/src/entry.cpp b/wumsloader/src/entry.cpp index 312487d..084a144 100644 --- a/wumsloader/src/entry.cpp +++ b/wumsloader/src/entry.cpp @@ -106,7 +106,8 @@ void doStart(int argc, char **argv) { gModuleInformation = {.version = MODULE_INFORMATION_VERSION}; ModuleDataPersistence::saveModuleData(&gModuleInformation, gLoadedModules); - auto orderedModules = OrderModulesByDependencies(gLoadedModules); + // Order modules list by dependencies. + gLoadedModules = OrderModulesByDependencies(gLoadedModules); // make sure the plugin backend module is at the end. auto it = std::find_if(gLoadedModules.begin(),