Bump the minimum extension version to 9.
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
@@ -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.
|
||||
|
||||
+1
-1
Submodule sourcepawn updated: ae1692388d...de31220fc9
Reference in New Issue
Block a user