Fixed plugin loading error on linux

This commit is contained in:
Raynaldo Rivera 2014-09-01 19:33:38 -07:00
parent 6d570357a4
commit 241a89c919
1 changed files with 2 additions and 2 deletions

View File

@ -146,7 +146,7 @@ namespace cAudio
cAudioVector<cAudioString>::Type fileList = getFilesInDirectory("."); cAudioVector<cAudioString>::Type fileList = getFilesInDirectory(".");
for(size_t i=0; i<fileList.size(); ++i) for(size_t i=0; i<fileList.size(); ++i)
{ {
if(fileList[i].substr(0, 4) == _CTEXT("cAp_")) if(fileList[i].substr(0, 4) == _CTEXT("cAp_") ||fileList[i].substr(0, 7) == _CTEXT("libcAp_") )
{ {
#ifdef CAUDIO_PLATFORM_WIN #ifdef CAUDIO_PLATFORM_WIN
if(fileList[i].substr(fileList[i].length()-4, 4) == _CTEXT(".dll")) if(fileList[i].substr(fileList[i].length()-4, 4) == _CTEXT(".dll"))
@ -157,7 +157,7 @@ namespace cAudio
#endif #endif
{ {
//Found a plugin, load it //Found a plugin, load it
installPlugin(toUTF8(cAudioString(_CTEXT("./") + fileList[i])), NULL); installPlugin(toUTF8(cAudioString(_CTEXT("./") + fileList[i])), fileList[i].c_str());
} }
} }
} }