diff options
-rw-r--r-- | bin10/lib/mir_app.lib | bin | 67552 -> 67842 bytes | |||
-rw-r--r-- | bin10/lib/mir_app64.lib | bin | 65366 -> 65660 bytes | |||
-rw-r--r-- | bin12/lib/mir_app.lib | bin | 67552 -> 67842 bytes | |||
-rw-r--r-- | bin12/lib/mir_app64.lib | bin | 65366 -> 65660 bytes | |||
-rw-r--r-- | bin14/lib/mir_app.lib | bin | 68764 -> 67842 bytes | |||
-rw-r--r-- | bin14/lib/mir_app64.lib | bin | 66628 -> 65660 bytes | |||
-rw-r--r-- | include/newpluginapi.h | 1 | ||||
-rw-r--r-- | src/mir_app/src/mir_app.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/mir_app64.def | 1 | ||||
-rw-r--r-- | src/mir_app/src/newplugins.cpp | 14 |
10 files changed, 17 insertions, 0 deletions
diff --git a/bin10/lib/mir_app.lib b/bin10/lib/mir_app.lib Binary files differindex 5b819eeb27..7b207b43c1 100644 --- a/bin10/lib/mir_app.lib +++ b/bin10/lib/mir_app.lib diff --git a/bin10/lib/mir_app64.lib b/bin10/lib/mir_app64.lib Binary files differindex 8aa618cbcd..31ef8b0b07 100644 --- a/bin10/lib/mir_app64.lib +++ b/bin10/lib/mir_app64.lib diff --git a/bin12/lib/mir_app.lib b/bin12/lib/mir_app.lib Binary files differindex 5b819eeb27..7b207b43c1 100644 --- a/bin12/lib/mir_app.lib +++ b/bin12/lib/mir_app.lib diff --git a/bin12/lib/mir_app64.lib b/bin12/lib/mir_app64.lib Binary files differindex 8aa618cbcd..31ef8b0b07 100644 --- a/bin12/lib/mir_app64.lib +++ b/bin12/lib/mir_app64.lib diff --git a/bin14/lib/mir_app.lib b/bin14/lib/mir_app.lib Binary files differindex 59a9601cd1..7b207b43c1 100644 --- a/bin14/lib/mir_app.lib +++ b/bin14/lib/mir_app.lib diff --git a/bin14/lib/mir_app64.lib b/bin14/lib/mir_app64.lib Binary files differindex e38ee2ae9f..31ef8b0b07 100644 --- a/bin14/lib/mir_app64.lib +++ b/bin14/lib/mir_app64.lib diff --git a/include/newpluginapi.h b/include/newpluginapi.h index 0c61b50960..e02d454caf 100644 --- a/include/newpluginapi.h +++ b/include/newpluginapi.h @@ -50,6 +50,7 @@ struct MUUID };
MIR_APP_DLL(int) GetPluginLangId(const MUUID &uuid, int hLangpack);
+MIR_APP_DLL(int) IsPluginLoaded(const MUUID &uuid);
/////////////////////////////////////////////////////////////////////////////////////////
// Used to define the end of the MirandaPluginInterface list
diff --git a/src/mir_app/src/mir_app.def b/src/mir_app/src/mir_app.def index c61b7bdcbc..d82042dec2 100644 --- a/src/mir_app/src/mir_app.def +++ b/src/mir_app/src/mir_app.def @@ -247,3 +247,4 @@ KillModuleExtraIcons @245 KillModuleFonts @246
KillModuleHotkeys @247
KillModuleSounds @248
+IsPluginLoaded @249
diff --git a/src/mir_app/src/mir_app64.def b/src/mir_app/src/mir_app64.def index 42779c7546..9cfc6c404d 100644 --- a/src/mir_app/src/mir_app64.def +++ b/src/mir_app/src/mir_app64.def @@ -247,3 +247,4 @@ KillModuleExtraIcons @245 KillModuleFonts @246
KillModuleHotkeys @247
KillModuleSounds @248
+IsPluginLoaded @249
diff --git a/src/mir_app/src/newplugins.cpp b/src/mir_app/src/newplugins.cpp index 496e1184ae..f44872363c 100644 --- a/src/mir_app/src/newplugins.cpp +++ b/src/mir_app/src/newplugins.cpp @@ -218,6 +218,20 @@ MIR_APP_DLL(int) GetPluginLangId(const MUUID &uuid, int _hLang) return 0;
}
+MIR_APP_DLL(int) IsPluginLoaded(const MUUID &uuid)
+{
+ for (int i = 0; i < pluginList.getCount(); i++) {
+ pluginEntry *p = pluginList[i];
+ if (!p->bpi.hInst)
+ continue;
+
+ if (equalUUID(p->bpi.pluginInfo->uuid, uuid))
+ return true;
+ }
+
+ return false;
+}
+
static bool validInterfaceList(MUUID *piface)
{
if (piface == NULL)
|