Update PLAPI version for NormalSHook signature change (MAXPLAYERS increase)
This commit is contained in:
parent
d83c498a8f
commit
4c376cbcb7
@ -309,12 +309,12 @@ bool CPlugin::ReadInfo()
|
|||||||
|
|
||||||
base->GetPubvarAddrs(idx, &local_addr, (cell_t **)&info);
|
base->GetPubvarAddrs(idx, &local_addr, (cell_t **)&info);
|
||||||
m_FileVersion = info->version;
|
m_FileVersion = info->version;
|
||||||
if (m_FileVersion >= 4) {
|
if (m_FileVersion >= 5) {
|
||||||
base->LocalToString(info->date, (char **)&pDate);
|
base->LocalToString(info->date, (char **)&pDate);
|
||||||
base->LocalToString(info->time, (char **)&pTime);
|
base->LocalToString(info->time, (char **)&pTime);
|
||||||
ke::SafeSprintf(m_DateTime, sizeof(m_DateTime), "%s %s", pDate, pTime);
|
ke::SafeSprintf(m_DateTime, sizeof(m_DateTime), "%s %s", pDate, pTime);
|
||||||
}
|
}
|
||||||
if (m_FileVersion > 5) {
|
if (m_FileVersion > 6) {
|
||||||
base->LocalToString(info->filevers, (char **)&pFileVers);
|
base->LocalToString(info->filevers, (char **)&pFileVers);
|
||||||
EvictWithError(Plugin_Failed, "Newer SourceMod required (%s or higher)", pFileVers);
|
EvictWithError(Plugin_Failed, "Newer SourceMod required (%s or higher)", pFileVers);
|
||||||
return false;
|
return false;
|
||||||
|
@ -38,7 +38,7 @@
|
|||||||
#include <version>
|
#include <version>
|
||||||
|
|
||||||
/** If this gets changed, you need to update Core's check. */
|
/** If this gets changed, you need to update Core's check. */
|
||||||
#define SOURCEMOD_PLUGINAPI_VERSION 5
|
#define SOURCEMOD_PLUGINAPI_VERSION 6
|
||||||
|
|
||||||
struct PlVers
|
struct PlVers
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user