diff --git a/AMBuildScript b/AMBuildScript index de0eda7..29559af 100644 --- a/AMBuildScript +++ b/AMBuildScript @@ -84,7 +84,7 @@ class ExtensionConfig(object): if builder.options.sm_path: self.sm_root = builder.options.sm_path else: - self.sm_root = ResolveEnvPath('SOURCEMOD18', 'sourcemod-1.8') + self.sm_root = ResolveEnvPath('SOURCEMOD', 'sourcemod-1.11') if not self.sm_root: self.sm_root = ResolveEnvPath('SOURCEMOD', 'sourcemod') if not self.sm_root: @@ -97,7 +97,7 @@ class ExtensionConfig(object): if builder.options.mms_path: self.mms_root = builder.options.mms_path else: - self.mms_root = ResolveEnvPath('MMSOURCE110', 'mmsource-1.10') + self.mms_root = ResolveEnvPath('MMSOURCE', 'mmsource-1.11') if not self.mms_root: self.mms_root = ResolveEnvPath('MMSOURCE', 'metamod-source') if not self.mms_root: @@ -426,4 +426,4 @@ if builder.backend == 'amb2': 'PackageScript', ] -builder.RunBuildScripts(BuildScripts, { 'Extension': Extension}) \ No newline at end of file +builder.RunBuildScripts(BuildScripts, { 'Extension': Extension}) diff --git a/extension.h b/extension.h index f3af444..1932790 100644 --- a/extension.h +++ b/extension.h @@ -39,6 +39,9 @@ #include "smsdk_ext.h" +#define DETOUR_DECL_STATIC9(name, ret, p1type, p1name, p2type, p2name, p3type, p3name, p4type, p4name, p5type, p5name, p6type, p6name, p7type, p7name, p8type, p8name, p9type, p9name) \ +ret (*name##_Actual)(p1type, p2type, p3type, p4type, p5type, p6type, p7type, p8type, p9type) = NULL; \ +ret name(p1type p1name, p2type p2name, p3type p3name, p4type p4name, p5type p5name, p6type p6name, p7type p7name, p8type p8name, p9type p9name) /** * @brief Sample implementation of the SDK Extension.