Bump the minimum extension version to 9.

This commit is contained in:
David Anderson
2026-05-17 15:22:58 -07:00
parent 468760c902
commit 5acd8c77c9
3 changed files with 9 additions and 2 deletions
+5
View File
@@ -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)
{
+3 -1
View File
@@ -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.