diff options
author | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-04-28 11:24:21 +0200 |
---|---|---|
committer | Goraf <22941576+Goraf@users.noreply.github.com> | 2018-04-28 11:24:21 +0200 |
commit | c10884bb4f55f5a56278eeb37d126786433b7396 (patch) | |
tree | f5b55eb2015fa5b7b44e7f2bb1c79b522180627f /plugins | |
parent | 5e61d6cc38062d88bcf0c7057b6c1c72cd265622 (diff) |
StartPosition: fix broken hook (thx ghazan)
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/StartPosition/src/main.cpp | 1 | ||||
-rw-r--r-- | plugins/StartPosition/src/startposition.cpp | 3 | ||||
-rw-r--r-- | plugins/StartPosition/src/startposition.h | 2 |
3 files changed, 6 insertions, 0 deletions
diff --git a/plugins/StartPosition/src/main.cpp b/plugins/StartPosition/src/main.cpp index 1290400046..c4bab80218 100644 --- a/plugins/StartPosition/src/main.cpp +++ b/plugins/StartPosition/src/main.cpp @@ -56,6 +56,7 @@ extern "C" __declspec(dllexport) int Load(void) {
mir_getLP(&pluginInfo);
+ g_plugin.Init();
g_plugin.positionClist();
return 0;
diff --git a/plugins/StartPosition/src/startposition.cpp b/plugins/StartPosition/src/startposition.cpp index 26c845b5ca..d6927d0ee1 100644 --- a/plugins/StartPosition/src/startposition.cpp +++ b/plugins/StartPosition/src/startposition.cpp @@ -2,6 +2,9 @@ CMPlugin::CMPlugin() : PLUGIN<CMPlugin>(MODULE_NAME) +{} + +void CMPlugin::Init() { HookPluginEvent(ME_OPT_INITIALISE, &CMPlugin::OnOptionsInit); } diff --git a/plugins/StartPosition/src/startposition.h b/plugins/StartPosition/src/startposition.h index fe5235e521..35c3982cc8 100644 --- a/plugins/StartPosition/src/startposition.h +++ b/plugins/StartPosition/src/startposition.h @@ -26,6 +26,8 @@ class CMPlugin : public PLUGIN<CMPlugin> public: CMPlugin(); + void Init(); + int __cdecl OnOptionsInit(WPARAM, LPARAM); void positionClist(); |