1 |
/* |
/* |
2 |
Copyright (C) 2010 Christian Schoenebeck |
Copyright (C) 2010-2016 Christian Schoenebeck |
3 |
*/ |
*/ |
4 |
|
|
5 |
#include "DynamicLibraries.h" |
#include "DynamicLibraries.h" |
93 |
continue; |
continue; |
94 |
// skip files that are not .so files |
// skip files that are not .so files |
95 |
if (sPath.length() < 3 || |
if (sPath.length() < 3 || |
96 |
sPath.substr(sPath.length() - 3) != ".so" && |
(sPath.substr(sPath.length() - 3) != ".so" && |
97 |
sPath.find(".so.") == String::npos) |
sPath.find(".so.") == String::npos) ) |
98 |
continue; |
continue; |
99 |
// load the DLL |
// load the DLL |
100 |
void* pDLL = dlopen(sPath.c_str(), RTLD_NOW); |
void* pDLL = dlopen(sPath.c_str(), RTLD_NOW); |