From f7e4dfb6f8b5d058ee3697cef20236f0fa9b127c Mon Sep 17 00:00:00 2001 From: mataes2007 Date: Sun, 15 May 2011 14:48:20 +0000 Subject: QuickReplies: added support for the new langpacks git-svn-id: http://miranda-plugins.googlecode.com/svn/trunk@102 e753b5eb-9565-29b2-b5c5-2cc6f99dfbcb --- QuickReplies/quickreplies.cpp | 21 ++------------------- 1 file changed, 2 insertions(+), 19 deletions(-) (limited to 'QuickReplies/quickreplies.cpp') diff --git a/QuickReplies/quickreplies.cpp b/QuickReplies/quickreplies.cpp index 65a8c99..441e4bf 100644 --- a/QuickReplies/quickreplies.cpp +++ b/QuickReplies/quickreplies.cpp @@ -22,24 +22,11 @@ Boston, MA 02111-1307, USA. HINSTANCE hInstance = NULL; PLUGINLINK *pluginLink; struct MM_INTERFACE mmi; +int hLangpack; HANDLE hOnModulesLoaded; HANDLE hOnPreShutdown; -PLUGININFO pluginInfo = -{ - sizeof(PLUGININFO), - __PLUGIN_NAME, - PLUGIN_MAKE_VERSION(__MAJOR_VERSION, __MINOR_VERSION, __RELEASE_NUM, __BUILD_NUM), - __DESCRIPTION, - __AUTHOR, - __AUTHOREMAIL, - __COPYRIGHT, - __AUTHORWEB, - UNICODE_AWARE, - 0 -}; - PLUGININFOEX pluginInfoEx = { sizeof(PLUGININFOEX), __PLUGIN_NAME, @@ -62,11 +49,6 @@ BOOL WINAPI DllMain(HINSTANCE hInstanceDLL, DWORD fdwReason, LPVOID lpvReserved) return TRUE; } -extern "C" __declspec(dllexport) PLUGININFO* MirandaPluginInfo(DWORD mirandaVersion) -{ - return &pluginInfo; -} - extern "C" __declspec(dllexport) PLUGININFOEX* MirandaPluginInfoEx(DWORD mirandaVersion) { return &pluginInfoEx; @@ -82,6 +64,7 @@ extern "C" __declspec(dllexport) const MUUID* MirandaPluginInterfaces(void) extern "C" __declspec(dllexport) int Load(PLUGINLINK* link) { pluginLink = link; + mir_getLP(&pluginInfoEx); mir_getMMI(&mmi); hOnModulesLoaded = HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); -- cgit v1.2.3