Skip to content

Commit

Permalink
Fix build with latest hl2sdk-csgo
Browse files Browse the repository at this point in the history
  • Loading branch information
asherkin committed Sep 2, 2019
1 parent c5efe48 commit b2b29cb
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions core/concmd_cleaner.cpp
Expand Up @@ -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
Expand Down Expand Up @@ -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)
Expand Down

0 comments on commit b2b29cb

Please sign in to comment.