summaryrefslogtreecommitdiff
path: root/plugins
diff options
context:
space:
mode:
authorVadim Dashevskiy <watcherhd@gmail.com>2012-06-05 20:02:16 +0000
committerVadim Dashevskiy <watcherhd@gmail.com>2012-06-05 20:02:16 +0000
commit9e97d362c526ddcf8c6ee68891575a7d24918b67 (patch)
treee757afc82ff393e6394b81a17baec4dd3d7482bf /plugins
parent439a7d68a8ff7465e735749068255dfa0c4af5ad (diff)
mirVersion cleaning
git-svn-id: http://svn.miranda-ng.org/main/trunk@321 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins')
-rw-r--r--plugins/AVS/main.cpp2
-rw-r--r--plugins/BossKeyPlus/BossKey.cpp5
-rw-r--r--plugins/Clist_nicer/SRC/init.cpp4
-rw-r--r--plugins/Db3x/init.c4
-rw-r--r--plugins/Dbx_tree/init.cpp5
-rw-r--r--plugins/FingerPrintModPlus/src/fingerprint.cpp7
-rw-r--r--plugins/FlashAvatars/cflash.cpp23
-rw-r--r--plugins/FloatingContacts/main.cpp6
-rw-r--r--plugins/FreeImage/Miranda/main.cpp2
-rw-r--r--plugins/IEView/ieview_main.cpp3
-rw-r--r--plugins/JSON/miminterface.cpp8
-rw-r--r--plugins/MetaContacts/meta_main.c4
-rw-r--r--plugins/ModernOpt/main.cpp3
-rw-r--r--plugins/Mwclist/init.c2
-rw-r--r--plugins/NewXstatusNotify/main.cpp3
-rw-r--r--plugins/NewsAggregator/Src/NewsAggregator.cpp5
-rw-r--r--plugins/Nudge/main.cpp5
-rw-r--r--plugins/Popup/src/main.cpp7
-rw-r--r--plugins/QuickMessages/main.c8
-rw-r--r--plugins/Quotes/Forex.cpp6
-rw-r--r--plugins/Sessions/Src/Main.cpp3
-rw-r--r--plugins/StatusPlugins/StartupStatus/main.cpp5
-rw-r--r--plugins/StopSpamPlus/src/stopspam.cpp3
-rw-r--r--plugins/Svc_dbepp/main.cpp4
-rw-r--r--plugins/YAMN/main.cpp3
-rw-r--r--plugins/ZeroNotification/main.c2
26 files changed, 7 insertions, 125 deletions
diff --git a/plugins/AVS/main.cpp b/plugins/AVS/main.cpp
index bb4ebc236f..cdd1c71b85 100644
--- a/plugins/AVS/main.cpp
+++ b/plugins/AVS/main.cpp
@@ -2486,8 +2486,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserv
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < MIRANDA_VERSION_CORE)
- return NULL;
return &pluginInfoEx;
}
diff --git a/plugins/BossKeyPlus/BossKey.cpp b/plugins/BossKeyPlus/BossKey.cpp
index e7f6226b91..4bc8b49800 100644
--- a/plugins/BossKeyPlus/BossKey.cpp
+++ b/plugins/BossKeyPlus/BossKey.cpp
@@ -87,11 +87,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,0)) {
- MessageBox( NULL, _T("The BossKey+ cannot be loaded. It requires Miranda IM 0.8 or later."), _T("BossKey+"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
- pluginInfo.cbSize = sizeof(PLUGININFOEX);
return &pluginInfo;
}
diff --git a/plugins/Clist_nicer/SRC/init.cpp b/plugins/Clist_nicer/SRC/init.cpp
index 77d5ed123e..2ba6531b13 100644
--- a/plugins/Clist_nicer/SRC/init.cpp
+++ b/plugins/Clist_nicer/SRC/init.cpp
@@ -174,10 +174,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0)) {
- MessageBox(0, _T("The installed version of the Clist Nicer+ plugin is not compatible with this Miranda installation. It requires Miranda core 0.9.0.0 or later"), _T("Clist Nicer+ error"), MB_OK);
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/Db3x/init.c b/plugins/Db3x/init.c
index ca574224f5..51ca5baafe 100644
--- a/plugins/Db3x/init.c
+++ b/plugins/Db3x/init.c
@@ -181,10 +181,6 @@ __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * reserved)
__declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < MIRANDA_VERSION_CORE ) {
- MessageBox( NULL, _T("The db3x plugin cannot be loaded. It requires Miranda IM 0.7.0.0 or later."), _T("db3x Plugin"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/Dbx_tree/init.cpp b/plugins/Dbx_tree/init.cpp
index 0c83f8826f..8c11e04a9f 100644
--- a/plugins/Dbx_tree/init.cpp
+++ b/plugins/Dbx_tree/init.cpp
@@ -53,11 +53,6 @@ extern "C" __declspec(dllexport) DATABASELINK* DatabasePluginInfo(void * Reserve
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD MirandaVersion)
{
- if (MirandaVersion < gMinMirVer)
- {
- MessageBoxA( 0, "The dbx_tree plugin cannot be loaded. It requires Miranda IM 0.8.0.0 or later.", gInternalName, MB_OK | MB_ICONEXCLAMATION | MB_SETFOREGROUND | MB_TOPMOST );
- return NULL;
- }
return &gPluginInfoEx;
}
diff --git a/plugins/FingerPrintModPlus/src/fingerprint.cpp b/plugins/FingerPrintModPlus/src/fingerprint.cpp
index 8a729bad7c..79e9309cd1 100644
--- a/plugins/FingerPrintModPlus/src/fingerprint.cpp
+++ b/plugins/FingerPrintModPlus/src/fingerprint.cpp
@@ -150,12 +150,7 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
}
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
-{// Tell Miranda IM about plugin
- if(mirandaVersion < 0x8000)
- {
- MessageBox(NULL, TranslateT("Fingerprint Mod+ plugin requires Miranda IM 0.8.0.0 or later"), TranslateT("Fatal error"), MB_OK);
- return NULL;
- }
+{
return &pluginInfoEx;
}
diff --git a/plugins/FlashAvatars/cflash.cpp b/plugins/FlashAvatars/cflash.cpp
index 78eaf7912c..12a0f1466a 100644
--- a/plugins/FlashAvatars/cflash.cpp
+++ b/plugins/FlashAvatars/cflash.cpp
@@ -644,29 +644,6 @@ static int systemModulesLoaded(WPARAM /*wParam*/, LPARAM /*lParam*/)
extern "C" __declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 4, 0, 0))
- return NULL;
-
- TCHAR filename[MAX_PATH];
- GetModuleFileName(g_hInst, filename, SIZEOF(filename));
-
- DWORD unused;
- DWORD verInfoSize = GetFileVersionInfoSize(filename, &unused);
- PVOID pVerInfo = malloc(verInfoSize);
- GetFileVersionInfo(filename, 0, verInfoSize, pVerInfo);
-
- TCHAR *productVersion;
- UINT blockSize;
- VerQueryValue(pVerInfo, _T("\\StringFileInfo\\040504b0\\FileVersion"), (PVOID*)&productVersion, &blockSize);
-
-#ifdef _UNICODE
- _snprintf(pluginName, SIZEOF(pluginName), "Flash avatars service [build #%S]", _tcsrchr(productVersion, ' ') + 1);
-#else
- _snprintf(pluginName, SIZEOF(pluginName), "Flash avatars service [build #%s]", strrchr(productVersion, ' ') + 1);
-#endif
- pluginInfo.shortName = pluginName;
-
- free(pVerInfo);
return &pluginInfo;
}
diff --git a/plugins/FloatingContacts/main.cpp b/plugins/FloatingContacts/main.cpp
index 187160f47d..4d10dbead5 100644
--- a/plugins/FloatingContacts/main.cpp
+++ b/plugins/FloatingContacts/main.cpp
@@ -174,10 +174,8 @@ _inline unsigned int MakeVer(int a, int b, int c, int d)
return PLUGIN_MAKE_VERSION(a, b, c, d);
}
-extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
-
- if ( mirandaVersion < MakeVer(MINIMAL_COREVERSION) ) return NULL;
- pluginInfoEx.version = MakeVer(PRODUCT_VERSION);
+extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+{
return &pluginInfoEx;
}
diff --git a/plugins/FreeImage/Miranda/main.cpp b/plugins/FreeImage/Miranda/main.cpp
index 8a3d538d4b..7cfad31ce8 100644
--- a/plugins/FreeImage/Miranda/main.cpp
+++ b/plugins/FreeImage/Miranda/main.cpp
@@ -1269,7 +1269,5 @@ extern "C" __declspec(dllexport) const MUUID * MirandaPluginInterfaces(void)
extern "C" __declspec(dllexport) const PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0))
- return NULL;
return &pluginInfoEx;
}
diff --git a/plugins/IEView/ieview_main.cpp b/plugins/IEView/ieview_main.cpp
index 402f6560c0..9e189373f7 100644
--- a/plugins/IEView/ieview_main.cpp
+++ b/plugins/IEView/ieview_main.cpp
@@ -55,9 +55,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hModule, DWORD dwReason, LPVOID lpvRese
extern "C" __declspec(dllexport) PLUGININFOEX *MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0)) {
- return NULL;
- }
return &pluginInfoEx;
}
diff --git a/plugins/JSON/miminterface.cpp b/plugins/JSON/miminterface.cpp
index b6fbf4ce88..51260d3901 100644
--- a/plugins/JSON/miminterface.cpp
+++ b/plugins/JSON/miminterface.cpp
@@ -35,12 +35,8 @@ extern "C" {
return TRUE;
}
- __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) {
- if (mirandaVersion<PLUGIN_MAKE_VERSION( 0, 9, 0, 0 )) {
- MessageBoxA(NULL, "libJSON can only be loaded on Miranda IM 0.9.0.0 or later.", NULL, MB_OK|MB_ICONERROR|MB_SETFOREGROUND|MB_TOPMOST);
- return NULL;
- }
-
+ __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
+ {
return &pluginInfo;
}
diff --git a/plugins/MetaContacts/meta_main.c b/plugins/MetaContacts/meta_main.c
index 2de31f978a..30681a211e 100644
--- a/plugins/MetaContacts/meta_main.c
+++ b/plugins/MetaContacts/meta_main.c
@@ -115,10 +115,6 @@ PLUGINLINK *pluginLink; //!< Link between Miranda and this plugin
*/
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION( 0, 8, 0, 0 )) {
- MessageBox( NULL, _T("The MetaContacts cannot be loaded. It requires Miranda IM 0.8.0.0 or later."), _T("Miranda"), MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST );
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/ModernOpt/main.cpp b/plugins/ModernOpt/main.cpp
index 5adb79cc25..e4533b6434 100644
--- a/plugins/ModernOpt/main.cpp
+++ b/plugins/ModernOpt/main.cpp
@@ -40,9 +40,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 8, 0, 0))
- return NULL;
-
return &pluginInfoEx;
}
diff --git a/plugins/Mwclist/init.c b/plugins/Mwclist/init.c
index 25eb944257..84eb9f00b0 100644
--- a/plugins/Mwclist/init.c
+++ b/plugins/Mwclist/init.c
@@ -108,8 +108,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,9) )
- return NULL;
return &pluginInfo;
}
diff --git a/plugins/NewXstatusNotify/main.cpp b/plugins/NewXstatusNotify/main.cpp
index b631bafc93..7e829fa2d5 100644
--- a/plugins/NewXstatusNotify/main.cpp
+++ b/plugins/NewXstatusNotify/main.cpp
@@ -80,9 +80,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0))
- return NULL;
-
return &pluginInfoEx;
}
diff --git a/plugins/NewsAggregator/Src/NewsAggregator.cpp b/plugins/NewsAggregator/Src/NewsAggregator.cpp
index 3d7c0e1251..716ef85d17 100644
--- a/plugins/NewsAggregator/Src/NewsAggregator.cpp
+++ b/plugins/NewsAggregator/Src/NewsAggregator.cpp
@@ -57,11 +57,6 @@ BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvReserved)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if(mirandaVersion < 0x0900)
- {
- MessageBox(NULL, TranslateT("News Aggregator plugin requires Miranda IM 0.9.0.0 or later"), TranslateT("Fatal error"), MB_OK);
- return NULL;
- }
return &pluginInfoEx;
}
diff --git a/plugins/Nudge/main.cpp b/plugins/Nudge/main.cpp
index 5af3d90205..a82a6f6dc0 100644
--- a/plugins/Nudge/main.cpp
+++ b/plugins/Nudge/main.cpp
@@ -249,11 +249,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL,DWORD fdwReason,LPVOID lpvRese
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if(mirandaVersion<PLUGIN_MAKE_VERSION(0,8,0,0))
- {
- MessageBox(NULL,_T("Nudge Plugin needs at least Miranda IM 0.8 to work correctly."),_T("Nudge Plugin"),MB_OK);
- return NULL;
- }
return &pluginInfo;
}
diff --git a/plugins/Popup/src/main.cpp b/plugins/Popup/src/main.cpp
index ab89e61d5f..7f17238cf2 100644
--- a/plugins/Popup/src/main.cpp
+++ b/plugins/Popup/src/main.cpp
@@ -498,13 +498,6 @@ MIRAPI PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
g_popup.MirVer = mirandaVersion;
-#if defined(_UNICODE)
- pluginInfoEx.flags = UNICODE_AWARE;
-#else
- if (GetProcAddress(GetModuleHandle(_T("user32")), "DrawTextExW"))
- pluginInfoEx.flags = 1; // dynamic UNICODE_AWARE
-#endif
-
return &pluginInfoEx;
}
diff --git a/plugins/QuickMessages/main.c b/plugins/QuickMessages/main.c
index 30d22df47d..100107cceb 100644
--- a/plugins/QuickMessages/main.c
+++ b/plugins/QuickMessages/main.c
@@ -378,13 +378,9 @@ const __declspec(dllexport) MUUID* MirandaPluginInterfaces(void){
return interfaces;}
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
- {
-
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 0))
- return NULL;
-
+{
return &pluginInfo;
- }
+}
__declspec(dllexport)int Unload(void)
{
diff --git a/plugins/Quotes/Forex.cpp b/plugins/Quotes/Forex.cpp
index d99d2aa952..3bb25a9f99 100644
--- a/plugins/Quotes/Forex.cpp
+++ b/plugins/Quotes/Forex.cpp
@@ -435,12 +435,6 @@ extern "C"
{
__declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,0) )
- {
- MessageBox(NULL, TranslateT("Quotes plugin requires Miranda IM 0.8.0.0 or later"), TranslateT("Fatal error"), MB_OK);
- return NULL;
- }
-
return &Global_pluginInfo;
}
diff --git a/plugins/Sessions/Src/Main.cpp b/plugins/Sessions/Src/Main.cpp
index 4f0e230704..8587ae010e 100644
--- a/plugins/Sessions/Src/Main.cpp
+++ b/plugins/Sessions/Src/Main.cpp
@@ -1059,9 +1059,6 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 9, 0, 0))
- return NULL;
-
return &pluginInfo;
}
diff --git a/plugins/StatusPlugins/StartupStatus/main.cpp b/plugins/StatusPlugins/StartupStatus/main.cpp
index b024013ce8..577c7c2799 100644
--- a/plugins/StatusPlugins/StartupStatus/main.cpp
+++ b/plugins/StatusPlugins/StartupStatus/main.cpp
@@ -69,11 +69,6 @@ PLUGININFOEX pluginInfoEx={
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < PLUGIN_MAKE_VERSION( 0, 8, 0, 0 )) {
- MessageBox(NULL, TranslateT("Startup requires Miranda IM of version 0.8, get it at www.miranda-im.org"), TranslateT("KeepStatus"), MB_OK);
- return 0;
- }
-
return &pluginInfoEx;
}
diff --git a/plugins/StopSpamPlus/src/stopspam.cpp b/plugins/StopSpamPlus/src/stopspam.cpp
index a6a6863505..beac3f3481 100644
--- a/plugins/StopSpamPlus/src/stopspam.cpp
+++ b/plugins/StopSpamPlus/src/stopspam.cpp
@@ -35,9 +35,6 @@ _inline unsigned int MakeVer(int a,int b,int c,int d)
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if ( mirandaVersion < MakeVer(__PRODVERSION_STRING))
- return NULL;
-
return &pluginInfoEx;
}
diff --git a/plugins/Svc_dbepp/main.cpp b/plugins/Svc_dbepp/main.cpp
index be18f13e00..8412f5410e 100644
--- a/plugins/Svc_dbepp/main.cpp
+++ b/plugins/Svc_dbepp/main.cpp
@@ -41,10 +41,6 @@ PLUGININFOEX pluginInfoEx={
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 0)) // 0.4 better. 0.3 have too many bugs
- {
- return NULL;
- }
return &pluginInfoEx;
}
diff --git a/plugins/YAMN/main.cpp b/plugins/YAMN/main.cpp
index be537a4f26..4dfca8c9b2 100644
--- a/plugins/YAMN/main.cpp
+++ b/plugins/YAMN/main.cpp
@@ -173,9 +173,6 @@ extern "C" BOOL WINAPI DllMain(HINSTANCE hinstDLL, DWORD fdwReason, LPVOID lpvRe
extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion >= PLUGIN_MAKE_VERSION(0, 7, 0, 3))
- bIcolibEmbededInCore = TRUE;
- pluginInfo.cbSize = sizeof(PLUGININFOEX);//Make sure cbSize is correct;
return &pluginInfo;
}
diff --git a/plugins/ZeroNotification/main.c b/plugins/ZeroNotification/main.c
index 2f278b4c01..76fa2eacf8 100644
--- a/plugins/ZeroNotification/main.c
+++ b/plugins/ZeroNotification/main.c
@@ -53,8 +53,6 @@ PLUGININFOEX pluginInfoEx = {
__declspec(dllexport) PLUGININFOEX * MirandaPluginInfoEx(DWORD mirandaVersion)
{
- if (mirandaVersion < PLUGIN_MAKE_VERSION(0, 7, 0, 0))
- return NULL;
return &pluginInfoEx;
}