Rewrote user message caching code to always use IServerGameDLL::GetUserMessageInfo (
bug 4117, r=dvander).
Games where the above function can crash are handled by detouring tier0's Error() function and jumping back to our own code. So in theory this should work on all games now.
1 //////////////////////////////////////////////////////////////////////////
2 // Shared data for testbail
5 #include "testevents.h"
9 extern StateList g_States;
10 extern SourceHook::ISourceHook *g_SHPtr;
12 MAKE_STATE_1(State_EatYams_Called, int);
13 MAKE_STATE_1(State_EatYams_Handler1_Called, int);
14 MAKE_STATE_1(State_EatYams_Handler2_Called, int);
15 MAKE_STATE_1(State_EatYams_Handler3_Called, int);
16 MAKE_STATE_1(State_EatYams_Return, int);
21 virtual int EatYams(int a)
23 ADD_STATE(State_EatYams_Called(a));
28 extern IGaben *g_Gabgab;
30 bool TestBail2(std::string &error);
33 using namespace N_TestBail;
37 SourceHook::Plugin g_PLID;
38 SH_DECL_HOOK1(IGaben, EatYams, SH_NOATTRIB, 0, int, int);