Skip to content

Commit

Permalink
Update PLAPI version for NormalSHook signature change (MAXPLAYERS inc…
Browse files Browse the repository at this point in the history
…rease)
  • Loading branch information
psychonic committed Jul 27, 2023
1 parent d83c498 commit 4c376cb
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/logic/PluginSys.cpp
Expand Up @@ -309,12 +309,12 @@ bool CPlugin::ReadInfo()

base->GetPubvarAddrs(idx, &local_addr, (cell_t **)&info);
m_FileVersion = info->version;
if (m_FileVersion >= 4) {
if (m_FileVersion >= 5) {
base->LocalToString(info->date, (char **)&pDate);
base->LocalToString(info->time, (char **)&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);
EvictWithError(Plugin_Failed, "Newer SourceMod required (%s or higher)", pFileVers);
return false;
Expand Down
2 changes: 1 addition & 1 deletion plugins/include/core.inc
Expand Up @@ -38,7 +38,7 @@
#include <version>

/** If this gets changed, you need to update Core's check. */
#define SOURCEMOD_PLUGINAPI_VERSION 5
#define SOURCEMOD_PLUGINAPI_VERSION 6

struct PlVers
{
Expand Down

0 comments on commit 4c376cb

Please sign in to comment.