diff options
author | Mattes D <github@xoft.cz> | 2016-03-17 22:21:10 +0100 |
---|---|---|
committer | Mattes D <github@xoft.cz> | 2016-03-17 22:21:10 +0100 |
commit | 46430911feef2247c22141a31182b245081f00a6 (patch) | |
tree | 10155f63ac6ba948d965853ae20a083f7f49ecba /src/Bindings/PluginManager.cpp | |
parent | Merge pull request #3081 from Arthur2e5/master (diff) | |
parent | Changed cLuaWindow callbacks to use cLuaState::cCallback. (diff) | |
download | cuberite-46430911feef2247c22141a31182b245081f00a6.tar cuberite-46430911feef2247c22141a31182b245081f00a6.tar.gz cuberite-46430911feef2247c22141a31182b245081f00a6.tar.bz2 cuberite-46430911feef2247c22141a31182b245081f00a6.tar.lz cuberite-46430911feef2247c22141a31182b245081f00a6.tar.xz cuberite-46430911feef2247c22141a31182b245081f00a6.tar.zst cuberite-46430911feef2247c22141a31182b245081f00a6.zip |
Diffstat (limited to 'src/Bindings/PluginManager.cpp')
-rw-r--r-- | src/Bindings/PluginManager.cpp | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Bindings/PluginManager.cpp b/src/Bindings/PluginManager.cpp index 5b3ef7803..203450505 100644 --- a/src/Bindings/PluginManager.cpp +++ b/src/Bindings/PluginManager.cpp @@ -1965,6 +1965,23 @@ bool cPluginManager::ForEachPlugin(cPluginCallback & a_Callback) +AString cPluginManager::GetPluginFolderName(const AString & a_PluginName) +{ + // TODO: Implement locking for plugins + for (auto & plugin: m_Plugins) + { + if (plugin->GetName() == a_PluginName) + { + return plugin->GetFolderName(); + } + } + return AString(); +} + + + + + void cPluginManager::AddHook(cPlugin * a_Plugin, int a_Hook) { if (a_Plugin == nullptr) |