fix load function
This commit is contained in:
@@ -2,17 +2,19 @@
|
||||
|
||||
void MinimalApp::run() {
|
||||
|
||||
for(auto m : runOrder)
|
||||
for(std::string m : runOrder) {
|
||||
std::cout << "onLoad module: " << m << std::endl;
|
||||
modules[m]->onLoad();
|
||||
}
|
||||
|
||||
// Main loop
|
||||
while (!done && !runOrder.empty()) {
|
||||
|
||||
for(auto m : runOrder) {
|
||||
for(std::string m : runOrder) {
|
||||
modules[m]->run();
|
||||
}
|
||||
|
||||
for(auto m : toClose) {
|
||||
for(std::string m : toClose) {
|
||||
unload(m);
|
||||
}
|
||||
toClose.clear();
|
||||
|
||||
Reference in New Issue
Block a user