主修改整合基本完成

This commit is contained in:
2022-03-08 12:57:35 +08:00
parent 0b2e30605a
commit 5ffa76fdef
14 changed files with 864 additions and 1301 deletions

33
test/sock.h Normal file
View File

@@ -0,0 +1,33 @@
#pragma once
#define INIT_PACK_ADDRESS 0x721EA0
//ÊÕ°ü
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:
static void Pack_130_³é½±(int idx, int code, void* p3, void* p4);
public:
static void R_Register_Pack();
static bool net_get8(std::int8_t& v);
static bool net_get16(std::int16_t& v);
static bool net_get32(std::int32_t& v);
static bool net_getS(char* v, int sz);
};