Remove CPluginManager direct use of CPlugin::m_DateTime.
This commit is contained in:
parent
2f3d523ac0
commit
a579136a3d
@ -71,6 +71,7 @@ CPlugin::CPlugin(const char *file)
|
|||||||
|
|
||||||
m_serial = ++MySerial;
|
m_serial = ++MySerial;
|
||||||
m_errormsg[0] = '\0';
|
m_errormsg[0] = '\0';
|
||||||
|
m_DateTime[0] = '\0';
|
||||||
ke::SafeSprintf(m_filename, sizeof(m_filename), "%s", file);
|
ke::SafeSprintf(m_filename, sizeof(m_filename), "%s", file);
|
||||||
|
|
||||||
memset(&m_info, 0, sizeof(m_info));
|
memset(&m_info, 0, sizeof(m_info));
|
||||||
@ -2122,7 +2123,7 @@ void CPluginManager::OnRootConsoleCommand(const char *cmdname, const ICommandArg
|
|||||||
}
|
}
|
||||||
if (pl->m_FileVersion >= 3)
|
if (pl->m_FileVersion >= 3)
|
||||||
{
|
{
|
||||||
rootmenu->ConsolePrint(" Timestamp: %s", pl->m_DateTime);
|
rootmenu->ConsolePrint(" Timestamp: %s", pl->GetDateTime());
|
||||||
}
|
}
|
||||||
|
|
||||||
unsigned char *pCodeHash = pl->GetRuntime()->GetCodeHash();
|
unsigned char *pCodeHash = pl->GetRuntime()->GetCodeHash();
|
||||||
|
@ -260,6 +260,10 @@ public:
|
|||||||
// since the last call to HasUpdatedFile().
|
// since the last call to HasUpdatedFile().
|
||||||
bool HasUpdatedFile();
|
bool HasUpdatedFile();
|
||||||
|
|
||||||
|
const char *GetDateTime() {
|
||||||
|
return m_DateTime;
|
||||||
|
}
|
||||||
|
|
||||||
protected:
|
protected:
|
||||||
bool ReadInfo();
|
bool ReadInfo();
|
||||||
void DependencyDropped(CPlugin *pOwner);
|
void DependencyDropped(CPlugin *pOwner);
|
||||||
|
Loading…
Reference in New Issue
Block a user