Remove CPluginManager direct use of CPlugin::m_FileVersion.

This commit is contained in:
David Anderson 2015-09-19 17:27:06 -07:00
parent a579136a3d
commit 60f06d1414
2 changed files with 5 additions and 2 deletions

View File

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

View File

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