mirror of
https://github.com/wiiu-env/WUMSLoader.git
synced 2024-06-02 08:38:48 +02:00
Move iteration into own scope
This commit is contained in:
parent
66d9a4be59
commit
b01696394f
|
@ -126,14 +126,16 @@ void doStart(int argc, char **argv) {
|
||||||
// Order modules list by dependencies.
|
// Order modules list by dependencies.
|
||||||
gLoadedModules = OrderModulesByDependencies(gLoadedModules);
|
gLoadedModules = OrderModulesByDependencies(gLoadedModules);
|
||||||
|
|
||||||
// make sure the plugin backend module is at the end.
|
{
|
||||||
auto it = std::find_if(gLoadedModules.begin(),
|
// make sure the plugin backend module is at the end.
|
||||||
gLoadedModules.end(),
|
auto it = std::find_if(gLoadedModules.begin(),
|
||||||
[](auto &cur) { return std::string_view(cur->getExportName()) == "homebrew_wupsbackend"; });
|
gLoadedModules.end(),
|
||||||
if (it != gLoadedModules.end()) {
|
[](auto &cur) { return std::string_view(cur->getExportName()) == "homebrew_wupsbackend"; });
|
||||||
auto module = *it;
|
if (it != gLoadedModules.end()) {
|
||||||
gLoadedModules.erase(it);
|
auto module = *it;
|
||||||
gLoadedModules.push_back(module);
|
gLoadedModules.erase(it);
|
||||||
|
gLoadedModules.push_back(module);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
bool aromaBaseModuleLoaded = false;
|
bool aromaBaseModuleLoaded = false;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user