初版
This commit is contained in:
@@ -3,17 +3,16 @@
|
||||
#define __PACKETBUF_H__
|
||||
#pragma pack(push, 0x01)
|
||||
|
||||
|
||||
class PacketBuf
|
||||
{
|
||||
public:
|
||||
unsigned char UnknownData_0000[0x20000];
|
||||
unsigned char UnknownData_0000[0x20000];
|
||||
|
||||
public:
|
||||
PacketBuf()
|
||||
{
|
||||
memset(UnknownData_0000, 0, sizeof(UnknownData_0000));
|
||||
CallT<PacketBuf*>(base::PacketBuf::PacketBuf_make, this);
|
||||
CallT<PacketBuf *>(base::PacketBuf::PacketBuf_make, this);
|
||||
}
|
||||
|
||||
~PacketBuf()
|
||||
@@ -21,14 +20,15 @@ public:
|
||||
CallT<int>(base::PacketBuf::PacketBuf_destroy, this);
|
||||
}
|
||||
|
||||
static PacketBuf* NewPacketBuf()
|
||||
static PacketBuf *NewPacketBuf()
|
||||
{
|
||||
void* v62 = malloc(0x20000);
|
||||
if (!v62) return NULL;
|
||||
return CallT<PacketBuf*>(base::PacketBuf::PacketBuf_make, v62);
|
||||
void *v62 = malloc(0x20000);
|
||||
if (!v62)
|
||||
return NULL;
|
||||
return CallT<PacketBuf *>(base::PacketBuf::PacketBuf_make, v62);
|
||||
}
|
||||
|
||||
static void DelPacketBuf(PacketBuf* a1)
|
||||
static void DelPacketBuf(PacketBuf *a1)
|
||||
{
|
||||
CallT<int>(base::PacketBuf::PacketBuf_destroy, a1);
|
||||
free(a1);
|
||||
@@ -39,7 +39,7 @@ public:
|
||||
return CallT<int>(base::PacketBuf::at, this, a2);
|
||||
}
|
||||
|
||||
int bind_packet(char* a2, int a3)
|
||||
int bind_packet(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::bind_packet, this, a2, a3);
|
||||
}
|
||||
@@ -59,7 +59,7 @@ public:
|
||||
return CallT<int>(base::PacketBuf::compress_packet, this);
|
||||
}
|
||||
|
||||
int copy(PacketBuf const& a2)
|
||||
int copy(PacketBuf const &a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::copy, this, a2);
|
||||
}
|
||||
@@ -84,7 +84,7 @@ public:
|
||||
return CallT<int>(base::PacketBuf::getLastError, this);
|
||||
}
|
||||
|
||||
int get_binary(char* a2, int a3)
|
||||
int get_binary(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_binary, this, a2, a3);
|
||||
}
|
||||
@@ -94,12 +94,12 @@ public:
|
||||
return CallT<int>(base::PacketBuf::get_buf_ptr, this, a2);
|
||||
}
|
||||
|
||||
int get_byte(char* a2)
|
||||
int get_byte(char *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_byte, this, a2);
|
||||
}
|
||||
|
||||
int get_byte_u(uchar* a2)
|
||||
int get_byte_u(uchar *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_byte_u, this, a2);
|
||||
}
|
||||
@@ -109,22 +109,22 @@ public:
|
||||
return CallT<int>(base::PacketBuf::get_index, this);
|
||||
}
|
||||
|
||||
int get_int(int* a2)
|
||||
int get_int(int *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_int, this, a2);
|
||||
}
|
||||
|
||||
int get_int_u(uint* a2)
|
||||
int get_int_u(uint *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_int_u, this, a2);
|
||||
}
|
||||
|
||||
int get_int_ul(ulong* a2)
|
||||
int get_int_ul(ulong *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_int_ul, this, a2);
|
||||
}
|
||||
|
||||
int get_item_idx(ulong* a2)
|
||||
int get_item_idx(ulong *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_item_idx, this, a2);
|
||||
}
|
||||
@@ -139,22 +139,22 @@ public:
|
||||
return CallT<int>(base::PacketBuf::get_packet, this, a2);
|
||||
}
|
||||
|
||||
int get_short(short* a2)
|
||||
int get_short(short *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_short, this, a2);
|
||||
}
|
||||
|
||||
int get_short_u(ushort* a2)
|
||||
int get_short_u(ushort *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_short_u, this, a2);
|
||||
}
|
||||
|
||||
int get_str(char* a2, int a3, int a4)
|
||||
int get_str(char *a2, int a3, int a4)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::get_str, this, a2, a3, a4);
|
||||
}
|
||||
|
||||
int isCompressRequired(char* a2)
|
||||
int isCompressRequired(char *a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::isCompressRequired, this, a2);
|
||||
}
|
||||
@@ -179,12 +179,12 @@ public:
|
||||
return CallT<int>(base::PacketBuf::is_ptr_end, this, a2, a3);
|
||||
}
|
||||
|
||||
int put_binary(char* a2, int a3)
|
||||
int put_binary(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::put_binary, this, a2, a3);
|
||||
}
|
||||
|
||||
int put_binary_c(char const* a2, int a3)
|
||||
int put_binary_c(char const *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::put_binary_c, this, a2, a3);
|
||||
}
|
||||
@@ -194,7 +194,7 @@ public:
|
||||
return CallT<int>(base::PacketBuf::put_byte, this, a2);
|
||||
}
|
||||
|
||||
int put_header(int a2, int a3)
|
||||
int put_header(char a2, short a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::put_header, this, a2, a3);
|
||||
}
|
||||
@@ -209,7 +209,7 @@ public:
|
||||
return CallT<int>(base::PacketBuf::put_item_idx, this, a2);
|
||||
}
|
||||
|
||||
int put_packet(Inven_Item const& a2)
|
||||
int put_packet(Inven_Item const &a2)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::put_packet, this, a2);
|
||||
}
|
||||
@@ -219,12 +219,12 @@ public:
|
||||
return CallT<int>(base::PacketBuf::put_short, this, a2);
|
||||
}
|
||||
|
||||
int put_str(char* a2, int a3)
|
||||
int put_str(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::put_str, this, a2, a3);
|
||||
}
|
||||
|
||||
int put_str_c(char const* a2, int a3)
|
||||
int put_str_c(char const *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::put_str_c, this, a2, a3);
|
||||
}
|
||||
@@ -239,18 +239,15 @@ public:
|
||||
return CallT<int>(base::PacketBuf::set_index, this, a2);
|
||||
}
|
||||
|
||||
int set_packet(char const* a2, int a3)
|
||||
int set_packet(char const *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::PacketBuf::set_packet, this, a2, a3);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
class InterfacePacketBuf :public PacketBuf
|
||||
class InterfacePacketBuf : public PacketBuf
|
||||
{
|
||||
public:
|
||||
|
||||
InterfacePacketBuf()
|
||||
{
|
||||
CallT<int>(base::InterfacePacketBuf::InterfacePacketBuf_make, this);
|
||||
@@ -261,12 +258,12 @@ public:
|
||||
CallT<int>(base::InterfacePacketBuf::InterfacePacketBuf_destroy, this);
|
||||
}
|
||||
|
||||
int AcquirePacketBuf(PacketBuf* a2)
|
||||
int AcquirePacketBuf(PacketBuf *a2)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::AcquirePacketBuf, this, a2);
|
||||
}
|
||||
|
||||
int bind_packet(char* a2, int a3)
|
||||
int bind_packet(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::bind_packet, this, a2, a3);
|
||||
}
|
||||
@@ -291,7 +288,7 @@ public:
|
||||
return CallT<int>(base::InterfacePacketBuf::getLastError, this);
|
||||
}
|
||||
|
||||
int get_binary(char* a2, int a3)
|
||||
int get_binary(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::get_binary, this, a2, a3);
|
||||
}
|
||||
@@ -301,7 +298,7 @@ public:
|
||||
return CallT<int>(base::InterfacePacketBuf::get_index, this);
|
||||
}
|
||||
|
||||
int get_int(int* a2)
|
||||
int get_int(int *a2)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::get_int, this, a2);
|
||||
}
|
||||
@@ -316,7 +313,7 @@ public:
|
||||
return CallT<int>(base::InterfacePacketBuf::get_packet, this, a2);
|
||||
}
|
||||
|
||||
int get_short(short* a2)
|
||||
int get_short(short *a2)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::get_short, this, a2);
|
||||
}
|
||||
@@ -326,12 +323,12 @@ public:
|
||||
return CallT<int>(base::InterfacePacketBuf::is_finallized, this);
|
||||
}
|
||||
|
||||
int put_binary(char* a2, int a3)
|
||||
int put_binary(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::put_binary, this, a2, a3);
|
||||
}
|
||||
|
||||
int put_binary_c(char const* a2, int a3)
|
||||
int put_binary_c(char const *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::put_binary_c, this, a2, a3);
|
||||
}
|
||||
@@ -356,7 +353,7 @@ public:
|
||||
return CallT<int>(base::InterfacePacketBuf::put_item_idx, this, a2);
|
||||
}
|
||||
|
||||
int put_packet(Inven_Item const& a2)
|
||||
int put_packet(Inven_Item const &a2)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::put_packet, this, a2);
|
||||
}
|
||||
@@ -366,12 +363,12 @@ public:
|
||||
return CallT<int>(base::InterfacePacketBuf::put_short, this, a2);
|
||||
}
|
||||
|
||||
int put_str(char* a2, int a3)
|
||||
int put_str(char *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::put_str, this, a2, a3);
|
||||
}
|
||||
|
||||
int put_str_c(char const* a2, int a3)
|
||||
int put_str_c(char const *a2, int a3)
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::put_str_c, this, a2, a3);
|
||||
}
|
||||
@@ -380,24 +377,23 @@ public:
|
||||
{
|
||||
return CallT<int>(base::InterfacePacketBuf::set_index, this, a2);
|
||||
}
|
||||
|
||||
|
||||
};
|
||||
|
||||
class PacketGuard
|
||||
{
|
||||
public:
|
||||
static PacketGuard* NewPacketGuard()
|
||||
static PacketGuard *NewPacketGuard()
|
||||
{
|
||||
void* v62 = malloc(0x20000);
|
||||
typedef int (*__func)(void* a1);
|
||||
if (!v62) return NULL;
|
||||
void *v62 = malloc(0x20000);
|
||||
typedef int (*__func)(void *a1);
|
||||
if (!v62)
|
||||
return NULL;
|
||||
((__func)base::PacketGuard::PacketGuard_make)(v62);
|
||||
return (PacketGuard*)v62;
|
||||
return (PacketGuard *)v62;
|
||||
}
|
||||
static void DelPacketGuard(PacketGuard* a1)
|
||||
static void DelPacketGuard(PacketGuard *a1)
|
||||
{
|
||||
typedef int (*__func)(void* a1);
|
||||
typedef int (*__func)(void *a1);
|
||||
((__func)base::PacketGuard::PacketGuard_destroy)(a1);
|
||||
free(a1);
|
||||
}
|
||||
@@ -408,13 +404,13 @@ class PacketDispatcher
|
||||
public:
|
||||
int getDispatcher(int a2)
|
||||
{
|
||||
typedef int (*__func)(PacketDispatcher* a1, int a2);
|
||||
typedef int (*__func)(PacketDispatcher *a1, int a2);
|
||||
return ((__func)base::PacketDispatcher::getDispatcher)(this, a2);
|
||||
}
|
||||
|
||||
void** get_dispatcher(int a2)
|
||||
void **get_dispatcher(int a2)
|
||||
{
|
||||
typedef void** (*__func)(PacketDispatcher* a1, int a2);
|
||||
typedef void **(*__func)(PacketDispatcher *a1, int a2);
|
||||
return ((__func)base::PacketDispatcher::get_dispatcher)(this, a2);
|
||||
}
|
||||
};
|
||||
@@ -422,4 +418,3 @@ public:
|
||||
#pragma pack(pop)
|
||||
|
||||
#endif // __PACKETBUF_H__
|
||||
|
||||
|
||||
@@ -8,14 +8,13 @@ namespace base
|
||||
|
||||
const int Init = 0x082A08F4;
|
||||
|
||||
|
||||
const int importCashShopItemList = 0x088FDCB5;
|
||||
const int importCashShopItemList_hook_begin = 0x088FDD59;
|
||||
const int importCashShopItemList_hook_end = 0x088FDD61;
|
||||
|
||||
namespace ItemVendingMachine
|
||||
{
|
||||
//08178676
|
||||
// 08178676
|
||||
const int ProcessIPG_ResultOutput_hook_begin = 0x08179398;
|
||||
const int ProcessIPG_ResultOutput_hook_end = 0x081793A2;
|
||||
}
|
||||
@@ -42,7 +41,6 @@ namespace base
|
||||
const int CSystemTime_destroy = 0x082A6986;
|
||||
}
|
||||
|
||||
|
||||
namespace Dispatcher_BuyCeraShopItem
|
||||
{
|
||||
const int dispatch_sig = 0x081FD396;
|
||||
@@ -52,7 +50,6 @@ namespace base
|
||||
{
|
||||
const int dispatch_sig = 0x8217BD6;
|
||||
|
||||
|
||||
}
|
||||
|
||||
namespace DisPatcher_MoveMap
|
||||
@@ -76,13 +73,12 @@ namespace base
|
||||
const int Init = 0x08299FA0;
|
||||
const int Init_fix_1 = 0x0829C075;
|
||||
|
||||
|
||||
//base
|
||||
const int s_pSecuProtectionField = 0x0941F7CC; //0x18
|
||||
const int s_pItemVendingMachine = 0x0941F760; //0x20
|
||||
const int s_db_mgr = 0x0940BDAC; //0x38
|
||||
const int s_pCeraShop = 0x0941F744; //0x8
|
||||
const int s_pLogGameChannel = 0x0941F740; //0x10
|
||||
// base
|
||||
const int s_pSecuProtectionField = 0x0941F7CC; // 0x18
|
||||
const int s_pItemVendingMachine = 0x0941F760; // 0x20
|
||||
const int s_db_mgr = 0x0940BDAC; // 0x38
|
||||
const int s_pCeraShop = 0x0941F744; // 0x8
|
||||
const int s_pLogGameChannel = 0x0941F740; // 0x10
|
||||
const int s_systemTime_ = 0x0941F714;
|
||||
}
|
||||
|
||||
@@ -104,10 +100,9 @@ namespace base
|
||||
namespace CParty
|
||||
{
|
||||
const int addDungeonClear = 0x085BDDFC;
|
||||
const int addDungeonClear_fix_1 = 0x085BDE9D; //ÆÕͨ±»»÷
|
||||
const int addDungeonClear_fix_2 = 0x085BDF30; //Ô¶¹Å±»»÷
|
||||
const int addDungeonClear_fix_3 = 0x085BDFC3; //Òì½ç±»»÷
|
||||
|
||||
const int addDungeonClear_fix_1 = 0x085BDE9D; // ÆÕͨ±»»÷
|
||||
const int addDungeonClear_fix_2 = 0x085BDF30; // Ô¶¹Å±»»÷
|
||||
const int addDungeonClear_fix_3 = 0x085BDFC3; // Òì½ç±»»÷
|
||||
|
||||
}
|
||||
|
||||
@@ -292,7 +287,6 @@ namespace base
|
||||
const int set_index = 0x081252BA;
|
||||
const int set_packet = 0x0858D462;
|
||||
|
||||
|
||||
}
|
||||
|
||||
namespace InterfacePacketBuf
|
||||
@@ -332,12 +326,12 @@ namespace base
|
||||
const int PacketGuard_destroy = 0x0858DE80;
|
||||
}
|
||||
|
||||
namespace PacketDispatcher
|
||||
namespace PacketDispatcher // U
|
||||
{
|
||||
const int getDispatcher = 0x08231F2E;
|
||||
const int server_load_monitoring = 0x0825F658;
|
||||
const int log_recv_packet = 0x0825F72E;
|
||||
const int PacketDispatcher_make = 0x08590A2E;
|
||||
const int PacketDispatcher_make = 0x08590A2E;//???
|
||||
const int PacketDispatcher_destroy = 0x08594840;
|
||||
const int get_dispatcher = 0x085948E2;
|
||||
const int doDispatch = 0x08594922;
|
||||
@@ -356,7 +350,6 @@ namespace base
|
||||
const int ReqDBSendNewMailCashShop = 0x08556D5C;
|
||||
}
|
||||
|
||||
|
||||
namespace CHackAnalyzer
|
||||
{
|
||||
const int addServerHackCnt = 0x080F8C7E;
|
||||
@@ -464,10 +457,8 @@ namespace base
|
||||
const int update = 0x083F4718;
|
||||
const int MySQL_destroy = 0x083F3AEA;
|
||||
|
||||
|
||||
}
|
||||
|
||||
|
||||
namespace CGM_Manager
|
||||
{
|
||||
const int isGM = 0x0829948C;
|
||||
@@ -481,8 +472,7 @@ namespace base
|
||||
|
||||
namespace DisPatcher_MoveItem
|
||||
{
|
||||
const int process = 0x081C5904; //int __cdecl DisPatcher_MoveItem::process(DisPatcher_MoveItem *this, CUser *a2, MSG_BASE *a3, ParamBase *a4)
|
||||
|
||||
const int process = 0x081C5904; // int __cdecl DisPatcher_MoveItem::process(DisPatcher_MoveItem *this, CUser *a2, MSG_BASE *a3, ParamBase *a4)
|
||||
|
||||
}
|
||||
|
||||
@@ -564,14 +554,10 @@ namespace base
|
||||
namespace Dispatcher_ModItemAttr
|
||||
{
|
||||
const int dispatch_sig = 0x08200B08;
|
||||
const int dispatch_sig_hook = 0x08201119; //.text:08201119 cmp eax, 28D14Eh
|
||||
const int dispatch_sig_ret = 0x0820111E; //.text:0820111E ja short loc_820113E
|
||||
const int dispatch_sig_hook = 0x08201119; //.text:08201119 cmp eax, 28D14Eh
|
||||
const int dispatch_sig_ret = 0x0820111E; //.text:0820111E ja short loc_820113E
|
||||
const int _SendResult = 0x08201938;
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user