This commit is contained in:
root
2024-04-24 10:25:44 +08:00
parent 627bf43ee3
commit 248388a322
5271 changed files with 3753425 additions and 803 deletions

View File

@@ -1,3 +1,4 @@
#pragma once
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
@@ -5,66 +6,90 @@
#include <execinfo.h>
#include <elf.h>
#define PADALIGN(x,mask) ((x+mask)&(~(x%mask)))
#define PADALIGN(x, mask) ((x + mask) & (~(x % mask)))
#define Ver 1
#define Patch 2
__BEGIN_DECLS
typedef int(*fnPacketGuard)(void *pInst);
typedef int (*fnPacketGuard)(void *pInst);
typedef int(*fnaddServerHackCnt)(void *pCHackAnalyzer, void *pCUserCharacInfo, int HackType, int Cnt, int a5, int a6);
typedef int (*fnaddServerHackCnt)(void *pCHackAnalyzer, void *pCUserCharacInfo, int HackType, int Cnt, int a5, int a6);
typedef int(*fnParsing)(void *pUser, int nSize);
typedef int (*fnParsing)(void *pUser, int nSize);
typedef int(*fnput_header)(void *pInterfacePacketBuf, int Type, int Cmd);
typedef int (*fnput_header)(void *pInterfacePacketBuf, int Type, int Cmd);
typedef int(*fnIsRoutingItem)(void *pItem);
typedef void (*fnLeninsert_user)(void *Area, void *CUser);
typedef int(*fnsetCharacInfoDetail)(void *pUser, int a2, int a3, void *pCHARAC_DATA);
typedef void (*fnLenGameWorld_move_position)(void *GameWorld, void *CUser, int a3, int a4, int a5, short a6);
typedef void* (*fnGetVectorUserCharacInfo)(void *pUser, int a2);
typedef int (*fnLenGetTimerMess)(void *TimerQueue, void *TimerEntry);
typedef int(*fnIsGameMasterMode)(void *pUser);
typedef int (*fnLengetareauseridlist)(int a1, int a2);
typedef int(*fnisGMUser)(void *pUser);
typedef int (*fnInter_LoadGeolocation_dispatch_sig)(void *A, void *B, char *C);
typedef int(*fnGetPvPTeamCount)(void *pDataManager);
typedef int (*fnLenDispatcher_New_Gmdebug_Command)(void *Command, void *CUser, void *PacketBuf);
typedef int(*fnisGM)(void *pGMAccounts, unsigned int a2);
typedef int (*fnIsRoutingItem)(void *pItem);
typedef int(*fnisGM1)(void *pGM_Manager);
typedef int (*fnsetCharacInfoDetail)(void *pUser, int a2, int a3, void *pCHARAC_DATA);
typedef void* (*fnset_add_info)(void *pInven_Item, int a2);
typedef void *(*fnGetVectorUserCharacInfo)(void *pUser, int a2);
typedef int(*fndoDispatch)(void *pPacketDispatcher, void *pUser, int a3, int a4, void *src, int a6, int a7, int a8);
typedef int (*fnIsGameMasterMode)(void *pUser);
typedef void** (*fnget_dispatcher)(void *pPacketDispatcher, int a2);
typedef int (*fnisGMUser)(void *pUser);
typedef int(*fnisSocketAvatar)(void *pAvatarItemMgr1, void *pAvatarItemMgr2);
typedef int (*fnGetPvPTeamCount)(void *pDataManager);
typedef int(*fndispatch_template)(void *pInst, void *pUser, void *pPacketBuf);
typedef int (*fnisGM)(void *pGMAccounts, unsigned int a2);
typedef int(*fnreach_game_world)(void *pThis, void *a2);
typedef int (*fnisGM1)(void *pGM_Manager);
typedef int(*fnInter_LoadEtc_dispatch_sig)(void *pThis, void * pUser, char*a3);
typedef void *(*fnset_add_info)(void *pInven_Item, int a2);
typedef int(* CUserCharacInfo_getCurCharacNo)(void* pUser);
typedef int (*fndoDispatch)(void *pPacketDispatcher, void *pUser, int a3, int a4, void *src, int a6, int a7, int a8);
typedef char*(* CUserCharacInfo_getCurCharacName)(void* pUser);
typedef void **(*fnget_dispatcher)(void *pPacketDispatcher, int a2);
typedef int(*fnselect) (int __nfds, fd_set *__restrict __readfds,
fd_set *__restrict __writefds,
fd_set *__restrict __exceptfds,
struct timeval *__restrict __timeout);
typedef int (*fnisSocketAvatar)(void *pAvatarItemMgr1, void *pAvatarItemMgr2);
typedef int(*fnusleep) (__useconds_t __useconds);
typedef int (*fndispatch_template)(void *pInst, void *pUser, void *pPacketBuf);
typedef void* (*fnmalloc) (size_t __size);
typedef int (*fnreach_game_world)(void *pThis, void *a2);
typedef int (*fnInter_LoadEtc_dispatch_sig)(void *pThis, void *pUser, char *a3);
typedef int (*CUserCharacInfo_getCurCharacNo)(void *pUser);
typedef char *(*CUserCharacInfo_getCurCharacName)(void *pUser);
typedef int (*fnselect)(int __nfds, fd_set *__restrict __readfds,
fd_set *__restrict __writefds,
fd_set *__restrict __exceptfds,
struct timeval *__restrict __timeout);
typedef int (*fnusleep)(__useconds_t __useconds);
typedef void *(*fnmalloc)(size_t __size);
// 发送邮件
typedef int (*fnReqDBSendNewSystemMultiMail)(char *src, int a2, unsigned int a3, int a4, int a5, char *a6, int a7, int a8, int a9, char a10);
// 发送道具
typedef int (*fnAddItem)(void *CUser, int a2, int a3, int a4, int *a5, int a6);
// 首次创建角色送契约
typedef int (*fnInterSelectMobileAuthReward)(void *InterSelect, void *CUser, char *a3);
// 创建角色创建技能
typedef int (*fnCreateSkill)(int a1, int a2);
// 创建角色创建装备
typedef int (*fnCreateEquip)(void *a1, unsigned int a2, void *a3);
typedef int (*fnInitSkill)(int a1, int a2, int a3);
__END_DECLS