mirror of
https://github.com/RetroShare/RetroShare.git
synced 2025-05-15 04:22:27 -04:00
added settings page for plugins.
git-svn-id: http://svn.code.sf.net/p/retroshare/code/trunk@4283 b45a01b8-16f6-495d-af2f-9b41ad6348cc
This commit is contained in:
parent
3c93d21b34
commit
e6f2d22a8c
12 changed files with 699 additions and 6 deletions
|
@ -20,6 +20,8 @@
|
|||
std::string RsPluginManager::_plugin_entry_symbol ;
|
||||
std::string RsPluginManager::_local_cache_dir ;
|
||||
std::string RsPluginManager::_remote_cache_dir ;
|
||||
std::vector<std::string> RsPluginManager::_plugin_directories ;
|
||||
|
||||
ftServer *RsPluginManager::_ftserver = NULL ;
|
||||
p3ConnectMgr *RsPluginManager::_connectmgr = NULL ;
|
||||
|
||||
|
@ -45,6 +47,7 @@ bool RsPluginManager::acceptablePluginName(const std::string& name)
|
|||
|
||||
void RsPluginManager::loadPlugins(const std::vector<std::string>& plugin_directories)
|
||||
{
|
||||
_plugin_directories = plugin_directories ;
|
||||
_plugin_entry_symbol = "RETROSHARE_PLUGIN_provide" ;
|
||||
|
||||
// 0 - get the list of files to read
|
||||
|
@ -55,7 +58,7 @@ void RsPluginManager::loadPlugins(const std::vector<std::string>& plugin_directo
|
|||
if(!dirIt.isValid())
|
||||
{
|
||||
std::cerr << "Plugin directory : " << plugin_directories[i] << " does not exist." << std::endl ;
|
||||
return ;
|
||||
continue ;
|
||||
}
|
||||
|
||||
while(dirIt.readdir())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue