2022-03-08 12:57:35 +08:00
|
|
|
|
#pragma once
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
#define INIT_PACK_ADDRESS 0x721EA0
|
|
|
|
|
|
//<2F>հ<EFBFBD>
|
|
|
|
|
|
typedef void(__fastcall* init_pack_handler_t)(void* Ecx);
|
|
|
|
|
|
static init_pack_handler_t Lpfn_Init = nullptr;
|
|
|
|
|
|
typedef void(__cdecl* pack_handler_t)(int idx, int err, void*, void*);
|
|
|
|
|
|
typedef void(__cdecl* register_pack_handler_t)(int idx, pack_handler_t handler, int zero);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
class sock
|
|
|
|
|
|
{
|
|
|
|
|
|
private:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
public:
|
2022-03-09 16:27:06 +08:00
|
|
|
|
static void Pack_<EFBFBD>齱(int idx, int code, void* p3, void* p4);
|
2022-03-08 12:57:35 +08:00
|
|
|
|
|
|
|
|
|
|
public:
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
static void R_Register_Pack();
|
|
|
|
|
|
|
2022-03-10 20:33:31 +08:00
|
|
|
|
static bool Net_Get_Byte(BYTE& v);
|
|
|
|
|
|
static bool Net_Get_Short(short int& v);
|
|
|
|
|
|
static bool Net_Get_Dword(DWORD& v);
|
|
|
|
|
|
static bool Net_Get_Buffer(char* v, int sz);
|
2022-03-08 12:57:35 +08:00
|
|
|
|
};
|
|
|
|
|
|
|