mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-06-07 14:12:43 -04:00
fixed double / in path that would cause plugin loading issue on windows
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@5572 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
5016236030
commit
481e263c20
1 changed files with 4 additions and 1 deletions
|
@ -140,7 +140,10 @@ void RsPluginManager::loadPlugins(const std::vector<std::string>& plugin_directo
|
||||||
{
|
{
|
||||||
std::string fname;
|
std::string fname;
|
||||||
dirIt.d_name(fname);
|
dirIt.d_name(fname);
|
||||||
std::string fullname = plugin_directories[i] + "/" + fname;
|
|
||||||
|
char lc = plugin_directories[i][plugin_directories[i].length()-1] ; // length cannot be 0 here.
|
||||||
|
|
||||||
|
std::string fullname = (lc == '/' || lc == '\\')? (plugin_directories[i] + fname) : (plugin_directories[i] + "/" + fname) ;
|
||||||
|
|
||||||
if(!acceptablePluginName(fullname))
|
if(!acceptablePluginName(fullname))
|
||||||
continue ;
|
continue ;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue