heavy refactoring
This commit is contained in:
@@ -2,14 +2,19 @@
|
||||
|
||||
void ImguiEmbed::run() {
|
||||
|
||||
for(auto* m : modules)
|
||||
m->onLoad();
|
||||
for(auto* m : modules) {
|
||||
std::cout << "Loading Module: " << m->getName() << std::endl;
|
||||
//if(m->getName() != "WindowModule")
|
||||
m->onLoad();
|
||||
}
|
||||
|
||||
// Main loop
|
||||
while (!done && !modules.empty()) {
|
||||
|
||||
for(auto* m : modules) {
|
||||
m->run();
|
||||
//std::cout << "Running Module: " << m->getName() << std::endl;
|
||||
//if(m->getName() != "WindowModule")
|
||||
m->run();
|
||||
}
|
||||
|
||||
for(auto it = toClose.begin(); it != toClose.end(); it++) {
|
||||
@@ -18,7 +23,7 @@ void ImguiEmbed::run() {
|
||||
toClose.clear();
|
||||
|
||||
for(std::string s : toOpen) {
|
||||
load(s, getBlacklist());
|
||||
load(s, modules.begin());
|
||||
}
|
||||
toOpen.clear();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user