1.1 --- a/plugins/include/core.inc Sun Oct 05 04:19:39 2008 -0700
1.2 +++ b/plugins/include/core.inc Sun Oct 05 15:20:17 2008 -0700
1.3 @@ -37,7 +37,9 @@
1.4
1.5 #include <version>
1.6
1.7 -#define SOURCEMOD_PLUGINAPI_VERSION 3
1.8 +/** If this gets changed, you need to update Core's check. */
1.9 +#define SOURCEMOD_PLUGINAPI_VERSION 4
1.10 +
1.11 struct PlVers
1.12 {
1.13 version,
1.14 @@ -136,6 +138,25 @@
1.15 public Float:NULL_VECTOR[3]; /**< Pass this into certain functions to act as a C++ NULL */
1.16 public const String:NULL_STRING[1]; /**< pass this into certain functions to act as a C++ NULL */
1.17
1.18 +/**
1.19 + * Horrible compatibility shim.
1.20 + */
1.21 +public Extension:__ext_core =
1.22 +{
1.23 + name = "Core",
1.24 + file = "core",
1.25 + autoload = 0,
1.26 + required = 0,
1.27 +};
1.28 +
1.29 +native VerifyCoreVersion();
1.30 +
1.31 +public __ext_core_SetNTVOptional()
1.32 +{
1.33 + VerifyCoreVersion();
1.34 +}
1.35 +
1.36 +
1.37 #define AUTOLOAD_EXTENSIONS
1.38 #define REQUIRE_EXTENSIONS
1.39 #define REQUIRE_PLUGIN