From b2b29cb33f3a4b7bc4f4dc6ccba04d2bcea47a81 Mon Sep 17 00:00:00 2001 From: Asher Baker Date: Mon, 2 Sep 2019 21:45:04 +0100 Subject: [PATCH] Fix build with latest hl2sdk-csgo --- core/concmd_cleaner.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/core/concmd_cleaner.cpp b/core/concmd_cleaner.cpp index 683cb68b15..5dd84e3a59 100644 --- a/core/concmd_cleaner.cpp +++ b/core/concmd_cleaner.cpp @@ -36,7 +36,11 @@ #if SOURCE_ENGINE >= SE_ORANGEBOX SH_DECL_HOOK1_void(ICvar, UnregisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); +#if SOURCE_ENGINE == SE_CSGO +SH_DECL_HOOK2_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *, bool); +#else SH_DECL_HOOK1_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *); +#endif #else SH_DECL_HOOK1_void(ICvar, RegisterConCommandBase, SH_NOATTRIB, 0, ConCommandBase *); #endif @@ -78,7 +82,11 @@ class ConCommandCleaner : public SMGlobalClass #endif } +#if SOURCE_ENGINE == SE_CSGO + void LinkConCommandBase(ConCommandBase *pBase, bool unknown) +#else void LinkConCommandBase(ConCommandBase *pBase) +#endif { IConCommandLinkListener *listener = IConCommandLinkListener::head; while (listener)