fix ImguiEmbed

This commit is contained in:
2025-04-10 12:00:08 -05:00
parent 6bc3593f22
commit 10b8dd34ca
3 changed files with 8 additions and 7 deletions

View File

@@ -17,8 +17,12 @@ void ImguiEmbed::run() {
}
toClose.clear();
for(std::string m : toOpen) {
load(m);
for(auto m : toOpen) {
if(std::holds_alternative<std::string>(m.second)) {
load(std::get<std::string>(m.second))->onLoad();
} else {
load(std::get<Archimedes::Module*>(m.second))->onLoad();
}
}
toOpen.clear();
}

View File

@@ -11,7 +11,7 @@ class ImguiEmbed : public Archimedes::App {
public:
ImguiEmbed() {
Archimedes::Module* m = (Archimedes::Module*) new TestImgui(nullptr, Get());
Archimedes::Module* m = (Archimedes::Module*) new TestImgui(Get(), nullptr);
load(m);
};
@@ -21,10 +21,6 @@ class ImguiEmbed : public Archimedes::App {
void run();
//void stopModule(std::list<Archimedes::Module*>::iterator);
//void startModule(std::string);
};
#define APP_TYPE ImguiEmbed