summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--plugins/VersionInfo/src/CVersionInfo.cpp10
-rw-r--r--plugins/VersionInfo/src/CVersionInfo.h4
2 files changed, 8 insertions, 6 deletions
diff --git a/plugins/VersionInfo/src/CVersionInfo.cpp b/plugins/VersionInfo/src/CVersionInfo.cpp
index bc84d46001..a58bc5bb72 100644
--- a/plugins/VersionInfo/src/CVersionInfo.cpp
+++ b/plugins/VersionInfo/src/CVersionInfo.cpp
@@ -707,7 +707,7 @@ bool CVersionInfo::GetPluginLists()
DWORD loadError;
// SYSTEMTIME sysTime; //for timestamp
- //bWeatherPlugin = false;
+ bWeatherPlugin = false;
mirandaVersion = (DWORD)CallService(MS_SYSTEM_GETVERSION, 0, 0);
{
GetModuleFileName(GetModuleHandle(NULL), szMirandaPath, SIZEOF(szMirandaPath));
@@ -732,8 +732,8 @@ bool CVersionInfo::GetPluginLists()
if (!ValidExtension(fd.cFileName, _T("dll")))
continue; //do not report plugins that do not have extension .dll
- //if (_tcsicmp(fd.cFileName, _T("weather.dll")) == 0)
- //bWeatherPlugin = true;
+ if (_tcsicmp(fd.cFileName, _T("weather.dll")) == 0)
+ bWeatherPlugin = true;
hInstPlugin = GetModuleHandle(fd.cFileName); //try to get the handle of the module
@@ -1153,7 +1153,9 @@ std::tstring CVersionInfo::GetInformationsAsString(int bDisableForumStyle) {
out.append(GetListAsString(listUnloadablePlugins, flags, beautify));
BeautifyReport(beautify, normalPluginsEnd, _T(""), out);
}
- //if (bWeatherPlugin)
+ if (bWeatherPlugin) {
+ out.append(_T("\r\nWeather ini files:\r\n-------------------------------------------------------------------------------\r\n"));
+ }
AddInfoFooter(suppressHeader, forumStyle, beautify, out);
return out;
diff --git a/plugins/VersionInfo/src/CVersionInfo.h b/plugins/VersionInfo/src/CVersionInfo.h
index 51155b9148..11eadb078f 100644
--- a/plugins/VersionInfo/src/CVersionInfo.h
+++ b/plugins/VersionInfo/src/CVersionInfo.h
@@ -61,7 +61,7 @@ class CVersionInfo
unsigned int luiEvents;
unsigned int luiUnreadEvents;
unsigned int luiDBSize;
- //bool bWeatherPlugin;
+ bool bWeatherPlugin;
//Configuration
bool GetLinkedModulesInfo(TCHAR *moduleName, std::tstring &linkedModules);
@@ -78,7 +78,7 @@ class CVersionInfo
bool GetLangpackInfo();
bool GetPluginLists();
bool GetEventCount(); //TODO
- //bool GetWeatherInfo();
+ bool GetWeatherInfo();
//OSInformations
bool GetOSVersion();
bool GetHWSettings();