添加项目文件。
This commit is contained in:
57
src - 副本/controller.hpp
Normal file
57
src - 副本/controller.hpp
Normal file
@@ -0,0 +1,57 @@
|
||||
#include "import.h"
|
||||
#include "sdk_class.hpp"
|
||||
#include "hook.h"
|
||||
#include "utils.hpp"
|
||||
|
||||
|
||||
class controller
|
||||
{
|
||||
public:
|
||||
controller();
|
||||
|
||||
~controller();
|
||||
|
||||
void init();
|
||||
|
||||
|
||||
private:
|
||||
/**
|
||||
* @brief hook修复镶嵌徽章
|
||||
* @param pDispatcher_UseJewel
|
||||
* @param pUser
|
||||
* @param pBuf
|
||||
* @return
|
||||
*/
|
||||
static int hook_UseJewel_dispatch_sig(void* pDispatcher_UseJewel, CUser* pUser, PacketBuf* pBuf);
|
||||
|
||||
/**
|
||||
* @brief hook收包处理
|
||||
* @param a1
|
||||
* @param a2
|
||||
* @param a3
|
||||
* @param a4
|
||||
* @param src
|
||||
* @param a6
|
||||
* @param a7
|
||||
* @param a8
|
||||
* @return
|
||||
*/
|
||||
static int hook_PacketDispatcher_doDispatch(PacketDispatcher* a1, CUser* a2, int a3, int packet_id, void* packet_src, int pecakt_len, int a7, int a8);
|
||||
|
||||
private:
|
||||
using UseJewel_dispatch_sig_Type = decltype(hook_UseJewel_dispatch_sig);
|
||||
UseJewel_dispatch_sig_Type* old_UseJewel_dispatch_sig;
|
||||
|
||||
using PacketDispatcher_doDispatch_Type = decltype(hook_PacketDispatcher_doDispatch);
|
||||
PacketDispatcher_doDispatch_Type* old_PacketDispatcher_doDispatch;
|
||||
|
||||
|
||||
private:
|
||||
FuncHook mhook_UseJewel_dispatch_sig;
|
||||
FuncHook mhook_PacketDispatcher_doDispatch;
|
||||
|
||||
|
||||
|
||||
private:
|
||||
static controller* pThis;
|
||||
};
|
||||
Reference in New Issue
Block a user