Skip to content

Commit 6c1e066

Browse files
committed
added plugin loader error check for debug
1 parent ee4076a commit 6c1e066

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

libs/pugg/Plugin.h

+1
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,7 @@ class DllLoader
4141
_handle = LoadLibraryA(filename.c_str());
4242
#else
4343
_handle = dlopen(filename.c_str(), RTLD_NOW);
44+
if(!_handle) fprintf(stderr, "dlopen failed: %s\n", dlerror());
4445
#endif
4546
return (_handle != NULL);
4647
}

src/ofxVisualProgramming.cpp

+2-1
Original file line numberDiff line numberDiff line change
@@ -184,7 +184,8 @@ void ofxVisualProgramming::setup(ofxImGui::Gui* _guiRef, string release){
184184
// load all plugins
185185
for(unsigned int i = 0; i < pluginsDir.size(); i++){
186186
ofLog(OF_LOG_NOTICE,"Loading plugin: %s",pluginsDir.getFile(i).getFileName().c_str());
187-
plugins_kernel.load_plugin(pluginsDir.getFile(i).getAbsolutePath().c_str());
187+
string tmpPlugPath = pluginsDir.getFile(i).getAbsolutePath();
188+
plugins_kernel.load_plugin(tmpPlugPath);
188189
}
189190

190191
// Create new empty file patch

0 commit comments

Comments
 (0)