diff options
author | George Hazan <george.hazan@gmail.com> | 2012-07-11 21:12:00 +0000 |
---|---|---|
committer | George Hazan <george.hazan@gmail.com> | 2012-07-11 21:12:00 +0000 |
commit | 2bbcdb330bbf4d3bbd636f7014ee447c9be95495 (patch) | |
tree | 7b1deacf6b281d03bcfdfdf671fe4b9d0498a0d2 /src/modules/plugins/newplugins.cpp | |
parent | c67de31a8ce0b1a43b11662674ac0b64d14812d4 (diff) |
fix for a TTB to remove buttons of the dynamically unloaded plugins
git-svn-id: http://svn.miranda-ng.org/main/trunk@911 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'src/modules/plugins/newplugins.cpp')
-rw-r--r-- | src/modules/plugins/newplugins.cpp | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/modules/plugins/newplugins.cpp b/src/modules/plugins/newplugins.cpp index cfccdfaf62..6b2eb6d63a 100644 --- a/src/modules/plugins/newplugins.cpp +++ b/src/modules/plugins/newplugins.cpp @@ -127,6 +127,19 @@ char* GetPluginNameByInstance(HINSTANCE hInstance) return NULL;
}
+int GetPluginLangByInstance(HINSTANCE hInstance)
+{
+ if (pluginList.getCount() == 0)
+ return NULL;
+
+ for (int i=0; i < pluginList.getCount(); i++) {
+ pluginEntry* p = pluginList[i];
+ if (p->bpi.pluginInfo && p->bpi.hInst == hInstance)
+ return p->hLangpack;
+ }
+ return NULL;
+}
+
int GetPluginFakeId(const MUUID &uuid, int hLangpack)
{
for (int i=0; i < pluginList.getCount(); i++) {
|