fix load function

This commit is contained in:
2025-04-03 00:31:01 -05:00
parent 494085cdc1
commit 7cce8f6d8e
5 changed files with 36 additions and 26 deletions

View File

@@ -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();