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