mirror of
https://github.com/alliedmodders/metamod-source.git
synced 2025-02-23 16:54:14 +01:00
Removed usermessage api support for CS:GO (bug 5578, r=asherkin).
This commit is contained in:
parent
ec293571bf
commit
a9f99ae072
@ -315,7 +315,11 @@ void BaseProvider::UnregisterConCommandBase(ConCommandBase *pCommand)
|
|||||||
|
|
||||||
int BaseProvider::GetUserMessageCount()
|
int BaseProvider::GetUserMessageCount()
|
||||||
{
|
{
|
||||||
|
#if SOURCE_ENGINE == SE_CSGO
|
||||||
|
return -1;
|
||||||
|
#else
|
||||||
return (int)usermsgs_list.size();
|
return (int)usermsgs_list.size();
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
int BaseProvider::FindUserMessage(const char *name, int *size)
|
int BaseProvider::FindUserMessage(const char *name, int *size)
|
||||||
@ -522,6 +526,14 @@ void ClientCommand(edict_t *pEdict)
|
|||||||
RETURN_META(MRES_IGNORED);
|
RETURN_META(MRES_IGNORED);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if SOURCE_ENGINE == SE_CSGO
|
||||||
|
|
||||||
|
void CacheUserMessages()
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
#else
|
||||||
|
|
||||||
/* This only gets called if IServerGameDLL::GetUserMessageInfo() triggers it */
|
/* This only gets called if IServerGameDLL::GetUserMessageInfo() triggers it */
|
||||||
void Detour_Error(const tchar *pMsg, ...)
|
void Detour_Error(const tchar *pMsg, ...)
|
||||||
{
|
{
|
||||||
@ -578,3 +590,5 @@ void CacheUserMessages()
|
|||||||
/* Jump back to setjmp() */
|
/* Jump back to setjmp() */
|
||||||
longjmp(usermsg_end, 1);
|
longjmp(usermsg_end, 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user