2016-08-01 11:21:46 -04:00
|
|
|
namespace Components
|
|
|
|
{
|
|
|
|
class QuickPatch : public Component
|
|
|
|
{
|
|
|
|
public:
|
|
|
|
typedef void(Callback)();
|
|
|
|
|
|
|
|
QuickPatch();
|
|
|
|
~QuickPatch();
|
2016-08-15 10:40:30 -04:00
|
|
|
|
2016-09-16 05:04:28 -04:00
|
|
|
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
|
2016-11-25 07:00:48 -05:00
|
|
|
const char* getName() { return "QuickPatch"; };
|
2016-08-15 10:40:30 -04:00
|
|
|
#endif
|
2016-08-01 11:21:46 -04:00
|
|
|
|
2016-11-20 08:09:07 -05:00
|
|
|
bool unitTest();
|
2016-09-17 08:05:01 -04:00
|
|
|
|
2016-08-01 11:21:46 -04:00
|
|
|
static void UnlockStats();
|
|
|
|
static void OnShutdown(Callback* callback);
|
|
|
|
|
|
|
|
static void OnFrame(Callback* callback);
|
|
|
|
static void Once(Callback* callback);
|
|
|
|
|
|
|
|
private:
|
|
|
|
static wink::signal<wink::slot<Callback>> ShutdownSignal;
|
|
|
|
|
|
|
|
static int64_t* GetStatsID();
|
2016-11-12 08:31:56 -05:00
|
|
|
static void ShutdownStub(int num);
|
2016-08-01 11:21:46 -04:00
|
|
|
|
2016-08-07 11:52:13 -04:00
|
|
|
static void SelectStringTableEntryInDvarStub();
|
|
|
|
|
2016-08-01 11:21:46 -04:00
|
|
|
static int MsgReadBitsCompressCheckSV(const char *from, char *to, int size);
|
|
|
|
static int MsgReadBitsCompressCheckCL(const char *from, char *to, int size);
|
|
|
|
static void CL_HandleRelayPacketCheck(Game::msg_t* msg, int client);
|
|
|
|
};
|
|
|
|
}
|