debug
This commit is contained in:
@@ -48,6 +48,7 @@ bool App::load(std::string lib, std::list<std::string> blacklist = {}) {
|
|||||||
Module* m = create(h, App::Get());
|
Module* m = create(h, App::Get());
|
||||||
|
|
||||||
if(!blacklist.empty()) {
|
if(!blacklist.empty()) {
|
||||||
|
std::cout << "second round!\n";
|
||||||
for(auto it = blacklist.begin(); it != blacklist.end(); it++) {
|
for(auto it = blacklist.begin(); it != blacklist.end(); it++) {
|
||||||
if(*it == m->getName()) {
|
if(*it == m->getName()) {
|
||||||
std::cout << "Module \"" << *it << "\" is already loaded!\n";
|
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;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
std::cout << "not the for loop!\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
blacklist.push_back(m->getName());
|
blacklist.push_back(m->getName());
|
||||||
|
|||||||
Reference in New Issue
Block a user