using App::Get() in module segfaults?
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user