add module loading
This commit is contained in:
@@ -1,5 +1,6 @@
|
||||
#include "MainGUI.h"
|
||||
#include "modules/ImguiModule/src/ImguiModule.h"
|
||||
#include "misc/cpp/imgui_stdlib.h"
|
||||
|
||||
MainGUI::MainGUI(Archimedes::App* a, void* h) : Archimedes::Module(a, h) {
|
||||
|
||||
@@ -34,7 +35,7 @@ void MainGUI::run() {
|
||||
ImGui::Begin("MainGUI Module");
|
||||
|
||||
ImGui::Text("Enter a module to load:");
|
||||
ImGui::InputText("path: ", path.data(), path.size());
|
||||
ImGui::InputText("path: ", &path);
|
||||
|
||||
if (ImGui::Button("Button"))
|
||||
app->startModule(path);
|
||||
|
||||
Reference in New Issue
Block a user