From 70eee8482a20292b3dd4653e0d696ec12830c7fb Mon Sep 17 00:00:00 2001 From: Peace-Maker Date: Mon, 6 May 2019 18:29:40 +0200 Subject: [PATCH] Fix compilation against SourceMod 1.10 MacroAssembler base is now in the |sp| namespace. --- DynamicHooks/hook.cpp | 1 + vhook.cpp | 1 + 2 files changed, 2 insertions(+) diff --git a/DynamicHooks/hook.cpp b/DynamicHooks/hook.cpp index 3abf764..5d0c605 100644 --- a/DynamicHooks/hook.cpp +++ b/DynamicHooks/hook.cpp @@ -37,6 +37,7 @@ #include #include "extension.h" +using namespace sp; // ============================================================================ // >> DEFINITIONS diff --git a/vhook.cpp b/vhook.cpp index 4c47220..4d83bbe 100644 --- a/vhook.cpp +++ b/vhook.cpp @@ -8,6 +8,7 @@ SourceHook::IHookManagerAutoGen *g_pHookManager = NULL; ke::Vector g_pHooks; using namespace SourceHook; +using namespace sp; #ifdef WIN32 #define OBJECT_OFFSET sizeof(void *)