1 |
/*************************************************************************** |
/*************************************************************************** |
2 |
* * |
* * |
3 |
* Copyright (C) 2007 - 2010 Christian Schoenebeck * |
* Copyright (C) 2007 - 2016 Christian Schoenebeck * |
4 |
* * |
* * |
5 |
* This program is free software; you can redistribute it and/or modify * |
* This program is free software; you can redistribute it and/or modify * |
6 |
* it under the terms of the GNU General Public License as published by * |
* it under the terms of the GNU General Public License as published by * |
239 |
continue; |
continue; |
240 |
// skip files that are not .so files |
// skip files that are not .so files |
241 |
if (sPath.length() < 3 || |
if (sPath.length() < 3 || |
242 |
sPath.substr(sPath.length() - 3) != ".so" && |
(sPath.substr(sPath.length() - 3) != ".so" && |
243 |
sPath.find(".so.") == String::npos) |
sPath.find(".so.") == String::npos) ) |
244 |
continue; |
continue; |
245 |
// load the DLL (the plugins should register themselfes automatically) |
// load the DLL (the plugins should register themselfes automatically) |
246 |
void* pDLL = dlopen(sPath.c_str(), RTLD_NOW); |
void* pDLL = dlopen(sPath.c_str(), RTLD_NOW); |