iw4x-client/src/Components/Modules/QuickPatch.hpp
momo5502 e41aa1f221 [BitMessage] Optimize shutdown handler
Optimize the shutdown handler, so that less bugs occur
while waiting for BitMRC to terminate
2016-11-12 20:06:23 +01:00

36 lines
882 B
C++

namespace Components
{
class QuickPatch : public Component
{
public:
typedef void(Callback)();
QuickPatch();
~QuickPatch();
#if defined(DEBUG) || defined(FORCE_UNIT_TESTS)
const char* GetName() { return "QuickPatch"; };
#endif
bool UnitTest();
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();
static void ShutdownStub(int num);
static void SelectStringTableEntryInDvarStub();
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);
};
}