This commit is contained in:
2025-03-18 00:24:08 -05:00
parent 6505591d4c
commit 4709ccbca3

View File

@@ -48,6 +48,7 @@ bool App::load(std::string lib, std::list<std::string> blacklist = {}) {
Module* m = create(h, App::Get());
if(!blacklist.empty()) {
std::cout << "second round!\n";
for(auto it = blacklist.begin(); it != blacklist.end(); it++) {
if(*it == m->getName()) {
std::cout << "Module \"" << *it << "\" is already loaded!\n";
@@ -56,6 +57,7 @@ bool App::load(std::string lib, std::list<std::string> blacklist = {}) {
return false;
}
}
std::cout << "not the for loop!\n";
}
blacklist.push_back(m->getName());