Added cPluginManager:GetPluginsPath() to the Lua API.
This commit is contained in:
parent
865ae82114
commit
1a26f05ed0
@ -56,7 +56,7 @@ void cPluginManager::ReloadPlugins(void)
|
||||
|
||||
void cPluginManager::FindPlugins(void)
|
||||
{
|
||||
AString PluginsPath = FILE_IO_PREFIX + AString( "Plugins/" );
|
||||
AString PluginsPath = GetPluginsPath() + "/";
|
||||
|
||||
// First get a clean list of only the currently running plugins, we don't want to mess those up
|
||||
for (PluginMap::iterator itr = m_Plugins.begin(); itr != m_Plugins.end();)
|
||||
|
@ -266,6 +266,10 @@ public: // tolua_export
|
||||
Returns false if plugin not found, and the value that the callback has returned otherwise. */
|
||||
bool DoWithPlugin(const AString & a_PluginName, cPluginCallback & a_Callback);
|
||||
|
||||
/** Returns the path where individual plugins' folders are expected.
|
||||
The path doesn't end in a slash. */
|
||||
static AString GetPluginsPath(void) { return FILE_IO_PREFIX + AString("Plugins"); } // tolua_export
|
||||
|
||||
private:
|
||||
friend class cRoot;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user