diff --git a/core/logic/ExtensionSys.cpp b/core/logic/ExtensionSys.cpp index 9e50a112..d2b1913d 100644 --- a/core/logic/ExtensionSys.cpp +++ b/core/logic/ExtensionSys.cpp @@ -284,6 +284,11 @@ bool CExtension::PerformAPICheck(char *error, size_t maxlength) return false; } + if (m_pAPI->GetExtensionVersion() == 10) { + ke::SafeSprintf(error, maxlength, "Extension version %d is not supported", m_pAPI->GetExtensionVersion()); + 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; diff --git a/public/IExtensionSys.h b/public/IExtensionSys.h index 0cf5479e..6c562887 100644 --- a/public/IExtensionSys.h +++ b/public/IExtensionSys.h @@ -140,8 +140,8 @@ namespace SourceMod * V9 - SourcePawn API revamp * V10 - SourcePawn 2 API. */ - #define SMINTERFACE_EXTENSIONAPI_VERSION_MIN 10 - #define SMINTERFACE_EXTENSIONAPI_VERSION 10 + #define SMINTERFACE_EXTENSIONAPI_VERSION_MIN 9 + #define SMINTERFACE_EXTENSIONAPI_VERSION 11 /** * @brief The interface an extension must expose. diff --git a/sourcepawn b/sourcepawn index 2b006389..672b2cda 160000 --- a/sourcepawn +++ b/sourcepawn @@ -1 +1 @@ -Subproject commit 2b006389b128549145775448b1fb9a60e921f8a8 +Subproject commit 672b2cda216d7543e12fe3ce03201cd537162a8f