diff --git a/core/logic/ExtensionSys.cpp b/core/logic/ExtensionSys.cpp index 4406a794..9e50a112 100644 --- a/core/logic/ExtensionSys.cpp +++ b/core/logic/ExtensionSys.cpp @@ -283,6 +283,11 @@ bool CExtension::PerformAPICheck(char *error, size_t maxlength) ke::SafeStrcpy(error, maxlength, "No IExtensionInterface instance provided"); return false; } + + if (m_pAPI->GetExtensionVersion() < SMINTERFACE_EXTENSIONAPI_VERSION_MIN) { + ke::SafeSprintf(error, maxlength, "Extension version is too old to load (%d, max is %d)", m_pAPI->GetExtensionVersion(), SMINTERFACE_EXTENSIONAPI_VERSION_MIN); + return false; + } if (m_pAPI->GetExtensionVersion() > SMINTERFACE_EXTENSIONAPI_VERSION) { diff --git a/public/IExtensionSys.h b/public/IExtensionSys.h index 4a632a88..c935a3a8 100644 --- a/public/IExtensionSys.h +++ b/public/IExtensionSys.h @@ -137,8 +137,10 @@ namespace SourceMod * V6 - added TestFeature() to IShareSys. * V7 - added OnDependenciesDropped() to IExtensionInterface. * V8 - added OnCoreMapEnd() to IExtensionInterface. + * V9 - SourcePawn API revamp */ - #define SMINTERFACE_EXTENSIONAPI_VERSION 8 + #define SMINTERFACE_EXTENSIONAPI_VERSION_MIN 9 + #define SMINTERFACE_EXTENSIONAPI_VERSION 9 /** * @brief The interface an extension must expose. diff --git a/sourcepawn b/sourcepawn index ae169238..de31220f 160000 --- a/sourcepawn +++ b/sourcepawn @@ -1 +1 @@ -Subproject commit ae1692388d231c4b809b4215d44675e949f69f33 +Subproject commit de31220fc98fd73d20b0f4ada57bc83b951d8904