summaryrefslogtreecommitdiff
path: root/protocols/Discord/src
diff options
context:
space:
mode:
Diffstat (limited to 'protocols/Discord/src')
-rw-r--r--protocols/Discord/src/main.cpp4
-rw-r--r--protocols/Discord/src/proto.h3
2 files changed, 5 insertions, 2 deletions
diff --git a/protocols/Discord/src/main.cpp b/protocols/Discord/src/main.cpp
index 1dc83a4ce3..5d4841e977 100644
--- a/protocols/Discord/src/main.cpp
+++ b/protocols/Discord/src/main.cpp
@@ -56,7 +56,7 @@ IconItem g_iconList[] =
{ LPGEN("Group chats"), "groupchat", IDI_GROUPCHAT }
};
-extern "C" int __declspec(dllexport) Load(void)
+int CMPlugin::Load()
{
g_hwndHeartbeat = CreateWindowEx(0, L"STATIC", nullptr, 0, 0, 0, 0, 0, nullptr, nullptr, nullptr, nullptr);
@@ -67,7 +67,7 @@ extern "C" int __declspec(dllexport) Load(void)
/////////////////////////////////////////////////////////////////////////////////////////
// Unload
-extern "C" int __declspec(dllexport) Unload(void)
+int CMPlugin::Unload()
{
DestroyWindow(g_hwndHeartbeat);
return 0;
diff --git a/protocols/Discord/src/proto.h b/protocols/Discord/src/proto.h
index c47875950f..502f52fb2f 100644
--- a/protocols/Discord/src/proto.h
+++ b/protocols/Discord/src/proto.h
@@ -365,4 +365,7 @@ public:
struct CMPlugin : public ACCPROTOPLUGIN<CDiscordProto>
{
CMPlugin();
+
+ int Load() override;
+ int Unload() override;
};