Skip to content

Commit 7a42d6b

Browse files
committed
Fix build with latest hl2sdk-csgo
1 parent 94b3ca0 commit 7a42d6b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

core/concmd_cleaner.cpp

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,11 @@
3636

3737
#if SOURCE_ENGINE >= SE_ORANGEBOX
3838
SH_DECL_HOOK1_void(ICvar, UnregisterConCommand, SH_NOATTRIB, 0, ConCommandBase *);
39+
#if SOURCE_ENGINE == SE_CSGO
40+
SH_DECL_HOOK2_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *, bool);
41+
#else
3942
SH_DECL_HOOK1_void(ICvar, RegisterConCommand, SH_NOATTRIB, 0, ConCommandBase *);
43+
#endif
4044
#else
4145
SH_DECL_HOOK1_void(ICvar, RegisterConCommandBase, SH_NOATTRIB, 0, ConCommandBase *);
4246
#endif
@@ -78,7 +82,11 @@ class ConCommandCleaner : public SMGlobalClass
7882
#endif
7983
}
8084

85+
#if SOURCE_ENGINE == SE_CSGO
86+
void LinkConCommandBase(ConCommandBase *pBase, bool unknown)
87+
#else
8188
void LinkConCommandBase(ConCommandBase *pBase)
89+
#endif
8290
{
8391
IConCommandLinkListener *listener = IConCommandLinkListener::head;
8492
while (listener)

0 commit comments

Comments
 (0)