#include "ImguiEmbed.h" void ImguiEmbed::run() { 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) { //std::cout << "Running Module: " << m->getName() << std::endl; //if(m->getName() != "WindowModule") m->run(); } for(auto it = toClose.begin(); it != toClose.end(); it++) { unload(it); } toClose.clear(); for(std::string s : toOpen) { load(s, modules.begin()); } toOpen.clear(); } }