summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/StartPosition/src/main.cpp1
-rw-r--r--plugins/StartPosition/src/startposition.cpp3
-rw-r--r--plugins/StartPosition/src/startposition.h2
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();