Remove CPluginManager direct use of CPlugin::m_FileVersion.
This commit is contained in:
parent
a579136a3d
commit
60f06d1414
@ -2121,7 +2121,7 @@ void CPluginManager::OnRootConsoleCommand(const char *cmdname, const ICommandArg
|
|||||||
rootmenu->ConsolePrint(" Status: not running");
|
rootmenu->ConsolePrint(" Status: not running");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
if (pl->m_FileVersion >= 3)
|
if (pl->GetFileVersion() >= 3)
|
||||||
{
|
{
|
||||||
rootmenu->ConsolePrint(" Timestamp: %s", pl->GetDateTime());
|
rootmenu->ConsolePrint(" Timestamp: %s", pl->GetDateTime());
|
||||||
}
|
}
|
||||||
|
@ -260,9 +260,12 @@ public:
|
|||||||
// since the last call to HasUpdatedFile().
|
// since the last call to HasUpdatedFile().
|
||||||
bool HasUpdatedFile();
|
bool HasUpdatedFile();
|
||||||
|
|
||||||
const char *GetDateTime() {
|
const char *GetDateTime() const {
|
||||||
return m_DateTime;
|
return m_DateTime;
|
||||||
}
|
}
|
||||||
|
int GetFileVersion() const {
|
||||||
|
return m_FileVersion;
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool ReadInfo();
|
bool ReadInfo();
|
||||||
|
Loading…
Reference in New Issue
Block a user