From 809392d1dc0436b064f1d2d03cc498551f2a97b9 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Wed, 9 Sep 2026 19:55:35 -0700 Subject: [PATCH] Update SourcePawn. This brings in some compiler fixes and the new ".size" property for arrays. The extension loader will also now once again accept version 9 extensions. Version 10 has been blacklisted. The IPluginContext API has been restored to be compatible with v9. --- core/logic/ExtensionSys.cpp | 5 +++++ public/IExtensionSys.h | 4 ++-- sourcepawn | 2 +- 3 files changed, 8 insertions(+), 3 deletions(-) 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