ImguiEmbed

This commit is contained in:
2025-03-29 23:23:49 -05:00
parent e087ac70d1
commit 0c67caf827
6 changed files with 123 additions and 12 deletions

View File

@@ -0,0 +1,26 @@
#include "ImguiEmbed.h"
void ImguiEmbed::run() {
for(auto* m : modules)
m->onLoad();
// Main loop
while (!done && !modules.empty()) {
for(auto* m : modules) {
m->run();
}
for(auto it = toClose.begin(); it != toClose.end(); it++) {
unload(it);
}
toClose.clear();
for(std::string s : toOpen) {
load(dynamicLoad(s), getBlacklist());
}
toOpen.clear();
}
}