From 60f06d14145439a5e399f003a25f338e905520b1 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Sat, 19 Sep 2015 17:27:06 -0700 Subject: [PATCH] Remove CPluginManager direct use of CPlugin::m_FileVersion. --- core/logic/PluginSys.cpp | 2 +- core/logic/PluginSys.h | 5 ++++- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/core/logic/PluginSys.cpp b/core/logic/PluginSys.cpp index 8fb1e37e..5d555d41 100644 --- a/core/logic/PluginSys.cpp +++ b/core/logic/PluginSys.cpp @@ -2121,7 +2121,7 @@ void CPluginManager::OnRootConsoleCommand(const char *cmdname, const ICommandArg rootmenu->ConsolePrint(" Status: not running"); } } - if (pl->m_FileVersion >= 3) + if (pl->GetFileVersion() >= 3) { rootmenu->ConsolePrint(" Timestamp: %s", pl->GetDateTime()); } diff --git a/core/logic/PluginSys.h b/core/logic/PluginSys.h index abb8b4e7..32b6a1b3 100644 --- a/core/logic/PluginSys.h +++ b/core/logic/PluginSys.h @@ -260,9 +260,12 @@ public: // since the last call to HasUpdatedFile(). bool HasUpdatedFile(); - const char *GetDateTime() { + const char *GetDateTime() const { return m_DateTime; } + int GetFileVersion() const { + return m_FileVersion; + } protected: bool ReadInfo();