summaryrefslogtreecommitdiff
path: root/plugins/Clist_mw
diff options
context:
space:
mode:
authorGeorge Hazan <george.hazan@gmail.com>2012-07-03 21:47:03 +0000
committerGeorge Hazan <george.hazan@gmail.com>2012-07-03 21:47:03 +0000
commite412759d7e551e3fc4dc4be6e1fae1cd4f308868 (patch)
tree00ed12238ba8b3735ddf95cf9e79c48d7c411c78 /plugins/Clist_mw
parent0f95cbb4a9f1c9a613dccb9d53f5ddb50a8cadd7 (diff)
no more PLUGININFOEX::replacesDefaultModule, that old & nasty clutch
since now all Myranda plugins are binary incompatible with Miranda's git-svn-id: http://svn.miranda-ng.org/main/trunk@743 1316c22d-e87f-b044-9b9b-93d7a3e3ba9c
Diffstat (limited to 'plugins/Clist_mw')
-rw-r--r--plugins/Clist_mw/init.cpp20
1 files changed, 6 insertions, 14 deletions
diff --git a/plugins/Clist_mw/init.cpp b/plugins/Clist_mw/init.cpp
index 41197e501e..2bec98ea31 100644
--- a/plugins/Clist_mw/init.cpp
+++ b/plugins/Clist_mw/init.cpp
@@ -85,8 +85,8 @@ PLUGININFOEX pluginInfo = {
"Copyright 2000-2010 Miranda-IM project ["__DATE__" "__TIME__"]",
"http://www.miranda-im.org",
UNICODE_AWARE,
- DEFMOD_CLISTALL,
- {0x2a417ab9, 0x16f2, 0x472d, { 0x9a, 0xe3, 0x41, 0x51, 0x3, 0xc7, 0x8a, 0x64 }} //{2A417AB9-16F2-472d-9AE3-415103C78A64}
+ //{2A417AB9-16F2-472d-9AE3-415103C78A64}
+ {0x2a417ab9, 0x16f2, 0x472d, { 0x9a, 0xe3, 0x41, 0x51, 0x3, 0xc7, 0x8a, 0x64 }}
};
BOOL WINAPI DllMain(HINSTANCE hInstDLL, DWORD dwReason, LPVOID reserved)
@@ -112,21 +112,13 @@ int LoadCLCModule(void);
int LoadCLUIModule();
int InitSkinHotKeys();
-static int systemModulesLoaded(WPARAM wParam, LPARAM lParam)
+static int OnModulesLoaded(WPARAM wParam, LPARAM lParam)
{
- __try {
- int *disableDefaultModule = 0;
- disableDefaultModule = (int*)CallService(MS_PLUGINS_GETDISABLEDEFAULTARRAY,0,0);
- if (!disableDefaultModule[DEFMOD_UICLUI]) if ( LoadCLUIModule()) return 1;
- }
- __except (exceptFunction(GetExceptionInformation()))
- {
- return 0;
- }
+ if ( LoadCLUIModule())
+ return 1;
InitSkinHotKeys();
RegisterCListFonts();
-
return 0;
}
@@ -216,7 +208,7 @@ LBL_Error:
rc = LoadContactListModule();
if (rc == 0) rc = LoadCLCModule();
- HookEvent(ME_SYSTEM_MODULESLOADED, systemModulesLoaded);
+ HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
BGModuleLoad();
OutputDebugStringA("CListInitialise ClistMW...Done\r\n");