diff options
author | George Hazan <ghazan@miranda.im> | 2022-11-30 17:48:47 +0300 |
---|---|---|
committer | George Hazan <ghazan@miranda.im> | 2022-11-30 17:48:47 +0300 |
commit | 0ece30dc7c0e34b4c5911969b8fa99c33c6d023c (patch) | |
tree | 671325d3fec09b999411e4e3ab84ef8259261818 /protocols/Telegram/src | |
parent | 46c53ffc6809c67e4607e99951a2846c382b63b2 (diff) |
Telegram: update for TDLIB
Diffstat (limited to 'protocols/Telegram/src')
-rw-r--r-- | protocols/Telegram/src/main.cpp | 17 | ||||
-rw-r--r-- | protocols/Telegram/src/stdafx.h | 6 |
2 files changed, 10 insertions, 13 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; } diff --git a/protocols/Telegram/src/stdafx.h b/protocols/Telegram/src/stdafx.h index 06f32c205d..f039dc6474 100644 --- a/protocols/Telegram/src/stdafx.h +++ b/protocols/Telegram/src/stdafx.h @@ -21,11 +21,7 @@ struct CMTProto; struct CMPlugin : public ACCPROTOPLUGIN<CMTProto> { - CMPlugin() : - ACCPROTOPLUGIN<CMTProto>("TELEGRAM") - { - SetUniqueId("Phone"); - } + CMPlugin(); }; #endif //_COMMON_H_
\ No newline at end of file |