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;
|
||||
|
||||
Reference in New Issue
Block a user