using App::Get() in module segfaults?

This commit is contained in:
2025-03-14 16:00:02 -05:00
parent 0e48eef378
commit 2fda6631ca
2 changed files with 3 additions and 1 deletions

View File

@@ -12,5 +12,5 @@ Print::~Print() {
void Print::run() {
std::cout << "Print lib loaded and run!\n";
//App::Get().unload(self);
App::Get().end();
//App::Get().end();
}

View File

@@ -41,6 +41,8 @@ void App::run() {
for(auto it = modules.begin(); it != modules.end(); it++) {
std::cout << "Running module: " << (*it)->getName() << std::endl;
(*it)->run();
std::cout << "Module ran successfully\n";
end();
}
}