add launcher info for most plugins, add launcher build date for plugins

(DivaMovie excluded to avoid conflicts when merging changes to that later)
This commit is contained in:
somewhatlurker
2019-10-06 15:51:09 +11:00
parent 32f6a4db26
commit 9a8fc1147d
10 changed files with 71 additions and 8 deletions
@@ -311,6 +311,7 @@ struct PluginInfo {
std::wstring filename;
std::wstring name;
std::wstring description;
std::wstring builddate;
std::vector<ConfigOptionBase*> configopts;
};
std::vector<PluginInfo> LoadPlugins()
@@ -341,6 +342,7 @@ std::vector<PluginInfo> LoadPlugins()
auto nameFunc = (LPCWSTR(*)())GetProcAddress(thisplugin.handle, "GetPluginName");
auto descFunc = (LPCWSTR(*)())GetProcAddress(thisplugin.handle, "GetPluginDescription");
auto dateFunc = (LPCWSTR(*)())GetProcAddress(thisplugin.handle, "GetBuildDate");
auto optsFunc = (PluginConfig::PluginConfigArray(*)())GetProcAddress(thisplugin.handle, "GetPluginOptions");
if (nameFunc != NULL)
@@ -353,6 +355,13 @@ std::vector<PluginInfo> LoadPlugins()
else
thisplugin.description = (thisplugin.filename + L" Plugin").c_str();
if (dateFunc != NULL)
thisplugin.builddate = dateFunc();
else
thisplugin.builddate = L"Unknown";
thisplugin.description += L"\n\nVersion: " + thisplugin.builddate;
if (optsFunc != NULL)
thisplugin.configopts = PluginConfig::GetConfigOptionVec(optsFunc());