From 4b9b01c4e23576dc423d36a39ece3adc69e0b1ae Mon Sep 17 00:00:00 2001 From: Vadim Dashevskiy Date: Wed, 6 Jun 2012 20:44:39 +0000 Subject: Twitter new LangPack support git-svn-id: http://svn.miranda-ng.org/main/trunk@342 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c --- protocols/Twitter/common.h | 2 +- protocols/Twitter/main.cpp | 13 ++----------- 2 files changed, 3 insertions(+), 12 deletions(-) (limited to 'protocols') diff --git a/protocols/Twitter/common.h b/protocols/Twitter/common.h index 675d1ec1be..b9fade2a9f 100644 --- a/protocols/Twitter/common.h +++ b/protocols/Twitter/common.h @@ -17,7 +17,7 @@ along with this program. If not, see . #pragma once -#define MIRANDA_VER 0x800 +#define MIRANDA_VER 0x0A00 #include using std::string; diff --git a/protocols/Twitter/main.cpp b/protocols/Twitter/main.cpp index 70bf202fc0..a8a188891f 100644 --- a/protocols/Twitter/main.cpp +++ b/protocols/Twitter/main.cpp @@ -28,6 +28,7 @@ MD5_INTERFACE md5i; MM_INTERFACE mmi; UTF8_INTERFACE utfi; LIST_INTERFACE li; +int hLangpack; CLIST_INTERFACE* pcli; @@ -65,17 +66,6 @@ DWORD WINAPI DllMain(HINSTANCE hInstance,DWORD,LPVOID) extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { - if(mirandaVersion < PLUGIN_MAKE_VERSION(0,8,0,29)) - { - MessageBox(0,_T("The Twitter protocol plugin cannot be loaded. ") - _T("It requires Miranda IM 0.9.4 or later."),_T("Miranda"), - MB_OK|MB_ICONWARNING|MB_SETFOREGROUND|MB_TOPMOST); - return NULL; - } - - /*unsigned long mv=_htonl(mirandaVersion); - memcpy(&AIM_CAP_MIRANDA[8],&mv,sizeof(DWORD)); - memcpy(&AIM_CAP_MIRANDA[12],AIM_OSCAR_VERSION,sizeof(DWORD));*/ return &pluginInfo; } @@ -144,6 +134,7 @@ extern "C" int __declspec(dllexport) Load(PLUGINLINK *link) mir_getMD5I(&md5i); mir_getUTFI(&utfi); mir_getLI(&li); + mir_getLP(&pluginInfo); pcli = reinterpret_cast( CallService( MS_CLIST_RETRIEVE_INTERFACE,0,reinterpret_cast(g_hInstance)) ); -- cgit v1.2.3