summaryrefslogtreecommitdiff
path: root/plugins/DropBox/src/main.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/DropBox/src/main.cpp')
-rw-r--r--plugins/DropBox/src/main.cpp21
1 files changed, 6 insertions, 15 deletions
diff --git a/plugins/DropBox/src/main.cpp b/plugins/DropBox/src/main.cpp
index 5c33cd74a1..da1ccca07f 100644
--- a/plugins/DropBox/src/main.cpp
+++ b/plugins/DropBox/src/main.cpp
@@ -1,7 +1,9 @@
-#include "common.h"
+//#include "common.h"
+#include "dropbox.h"
int hLangpack;
HINSTANCE g_hInstance;
+CDropbox *g_dropbox;
PLUGININFOEX pluginInfo =
{
@@ -37,25 +39,14 @@ extern "C" int __declspec(dllexport) Load(void)
{
mir_getLP(&pluginInfo);
- HookEvent(ME_OPT_INITIALISE, OnOptionsInit);
- HookEvent(ME_SYSTEM_MODULESLOADED, OnModulesLoaded);
-
- PROTOCOLDESCRIPTOR pd = { PROTOCOLDESCRIPTOR_V3_SIZE };
- pd.szName = MODULE;
- pd.type = PROTOTYPE_VIRTUAL;
-
- CallService(MS_PROTO_REGISTERMODULE, 0, (LPARAM)&pd);
-
- CreateProtoServiceFunction(MODULE, PS_GETCAPS, DropBoxGetCaps);
-
- CreateProtoServiceFunction(MODULE, PSS_FILE, DropBoxSendFile);
-
- CreateProtoServiceFunction(MODULE, PSS_MESSAGE, DropBoxSendMessage);
+ g_dropbox = new CDropbox();
return 0;
}
extern "C" int __declspec(dllexport) Unload(void)
{
+ delete g_dropbox;
+
return 0;
} \ No newline at end of file