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();