|
@@ -11,6 +11,10 @@
|
|
|
|
|
|
#include "stdafx.h"
|
|
|
|
|
|
+#include <gsl/gsl>
|
|
|
+#include <Shlwapi.h>
|
|
|
+#include <Windows.h>
|
|
|
+
|
|
|
#include "PlugIn.h"
|
|
|
|
|
|
using namespace aman;
|
|
@@ -22,6 +26,14 @@ PlugIn::PlugIn() :
|
|
|
PLUGIN_DEVELOPER,
|
|
|
PLUGIN_COPYRIGHT),
|
|
|
m_configuration() {
|
|
|
+ this->DisplayUserMessage(PLUGIN_NAME, "INFO", (std::string("Loaded ") + PLUGIN_NAME + " " + PLUGIN_VERSION).c_str(), true, true, false, false, false);
|
|
|
+
|
|
|
+ /* get the dll-path */
|
|
|
+ char path[MAX_PATH + 1] = { 0 };
|
|
|
+ const gsl::span<char, MAX_PATH + 1> span(path);
|
|
|
+ GetModuleFileNameA((HINSTANCE)&__ImageBase, span.data(), span.size());
|
|
|
+ PathRemoveFileSpecA(span.data());
|
|
|
+ std::string dllPath = span.data();
|
|
|
}
|
|
|
|
|
|
PlugIn::~PlugIn() noexcept { }
|