fix?
This commit is contained in:
10
src/App.cpp
10
src/App.cpp
@@ -47,9 +47,9 @@ bool App::load(std::string lib, std::list<std::string> blacklist = {}) {
|
||||
|
||||
Module* m = create(h, App::Get());
|
||||
|
||||
for(std::string s : blacklist) {
|
||||
if(s == m->getName()) {
|
||||
std::cout << "Module \"" << s << "\" is already loaded!\n";
|
||||
for(auto it = blacklist.begin(); it != blacklist.end(); it++) {
|
||||
if(*it == m->getName()) {
|
||||
std::cout << "Module \"" << *it << "\" is already loaded!\n";
|
||||
delete m;
|
||||
dlclose(h);
|
||||
return false;
|
||||
@@ -60,8 +60,8 @@ bool App::load(std::string lib, std::list<std::string> blacklist = {}) {
|
||||
|
||||
bool skip = false;
|
||||
|
||||
for(std::string s : blacklist) {
|
||||
auto it = m->deps.find(s);
|
||||
for(auto s = blacklist.begin(); s != blacklist.end(); s++) {
|
||||
auto it = m->deps.find(*s);
|
||||
if(it != m->deps.end())
|
||||
skip = true;
|
||||
if(skip) {
|
||||
|
||||
Reference in New Issue
Block a user