Remove CPluginManager direct use of CPlugin::m_DateTime.

This commit is contained in:
David Anderson 2015-09-19 17:25:21 -07:00
parent 2f3d523ac0
commit a579136a3d
2 changed files with 6 additions and 1 deletions

View File

@ -71,6 +71,7 @@ CPlugin::CPlugin(const char *file)
m_serial = ++MySerial;
m_errormsg[0] = '\0';
m_DateTime[0] = '\0';
ke::SafeSprintf(m_filename, sizeof(m_filename), "%s", file);
memset(&m_info, 0, sizeof(m_info));
@ -2122,7 +2123,7 @@ void CPluginManager::OnRootConsoleCommand(const char *cmdname, const ICommandArg
}
if (pl->m_FileVersion >= 3)
{
rootmenu->ConsolePrint(" Timestamp: %s", pl->m_DateTime);
rootmenu->ConsolePrint(" Timestamp: %s", pl->GetDateTime());
}
unsigned char *pCodeHash = pl->GetRuntime()->GetCodeHash();

View File

@ -260,6 +260,10 @@ public:
// since the last call to HasUpdatedFile().
bool HasUpdatedFile();
const char *GetDateTime() {
return m_DateTime;
}
protected:
bool ReadInfo();
void DependencyDropped(CPlugin *pOwner);