mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-11-06 00:05:07 +01:00
Actually order the modules by dependencies instead of throwing the result straight away.
This commit is contained in:
parent
60f86d6147
commit
5cca830592
@ -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(),
|
||||
|
Loading…
Reference in New Issue
Block a user