From ca55ac7905e8ffd1ee979b5b5fe7121fa7a03a5d Mon Sep 17 00:00:00 2001 From: George Hazan Date: Mon, 28 May 2018 22:38:35 +0300 Subject: all plugins => CMPlugin virtual functions --- protocols/Tox/src/main.cpp | 9 +-------- protocols/Tox/src/tox_proto.h | 2 ++ 2 files changed, 3 insertions(+), 8 deletions(-) (limited to 'protocols/Tox') diff --git a/protocols/Tox/src/main.cpp b/protocols/Tox/src/main.cpp index 329f6ffb51..219c7a07c6 100644 --- a/protocols/Tox/src/main.cpp +++ b/protocols/Tox/src/main.cpp @@ -46,15 +46,8 @@ int OnModulesLoaded(WPARAM, LPARAM) return 0; } -extern "C" int __declspec(dllexport) Load(void) +int CMPlugin::Load() { HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded); return 0; } - -///////////////////////////////////////////////////////////////////////////////////////// - -extern "C" int __declspec(dllexport) Unload(void) -{ - return 0; -} diff --git a/protocols/Tox/src/tox_proto.h b/protocols/Tox/src/tox_proto.h index 5af4c0bddf..37028045e9 100644 --- a/protocols/Tox/src/tox_proto.h +++ b/protocols/Tox/src/tox_proto.h @@ -249,6 +249,8 @@ private: struct CMPlugin : public ACCPROTOPLUGIN { CMPlugin(); + + int Load() override; }; #endif //_TOX_PROTO_H_ \ No newline at end of file -- cgit v1.2.3