diff options
Diffstat (limited to 'protocols/Telegram/src/main.cpp')
-rw-r--r-- | protocols/Telegram/src/main.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/protocols/Telegram/src/main.cpp b/protocols/Telegram/src/main.cpp index 3e25624f7f..0315936c3f 100644 --- a/protocols/Telegram/src/main.cpp +++ b/protocols/Telegram/src/main.cpp @@ -1,8 +1,11 @@ #include "stdafx.h" int hLangpack; +CMPlugin g_plugin; + +///////////////////////////////////////////////////////////////////////////////////////// -PLUGININFOEX pluginInfo = +static PLUGININFOEX pluginInfo = { sizeof(PLUGININFOEX), __PLUGIN_NAME, @@ -14,14 +17,13 @@ PLUGININFOEX pluginInfo = UNICODE_AWARE, // {AE708252-0DF8-42BA-9EF9-9ACC038EEDA7} {0xae708252, 0xdf8, 0x42ba, {0x9e, 0xf9, 0x9a, 0xcc, 0x3, 0x8e, 0xed, 0xa7}} - }; -///////////////////////////////////////////////////////////////////////////////////////// - -CMPlugin g_plugin; - -extern "C" _pfnCrtInit _pRawDllMain = &CMPlugin::RawDllMain; +CMPlugin::CMPlugin() : + ACCPROTOPLUGIN<CMTProto>("Telegram", pluginInfo) +{ + SetUniqueId("Phone"); +} ///////////////////////////////////////////////////////////////////////////////////////// @@ -31,7 +33,6 @@ extern "C" __declspec(dllexport) const MUUID MirandaInterfaces[] = { MIID_PROTOC extern "C" int __declspec(dllexport) Load(void) { - mir_getLP(&pluginInfo); return 0; } |