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.
This commit is contained in:
@@ -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;
|
||||
|
||||
@@ -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.
|
||||
|
||||
+1
-1
Submodule sourcepawn updated: 2b006389b1...672b2cda21
Reference in New Issue
Block a user