1212
This commit is contained in:
@@ -48,6 +48,8 @@ SUBHOOK_INIT(CUserWorkPerFiveMin, 0x8652F0C);
|
||||
SUBHOOK_INIT(TimerDispatcher_dispatch, 0x8632A18);
|
||||
SUBHOOK_INIT(SetUserMaxLevel, 0x0868fec8);
|
||||
|
||||
SUBHOOK_INIT(initWorldMapScript, 0x0817B950);
|
||||
|
||||
// SUBHOOK_INIT(AddMob, 0x08151612);
|
||||
|
||||
//_setCharacInfoDetail
|
||||
@@ -748,6 +750,14 @@ void *_SetUserMaxLevel(void *CUser, int level)
|
||||
return CUser;
|
||||
}
|
||||
|
||||
int _initWorldMapScript(void *a1, char *a2, char *a3)
|
||||
{
|
||||
int ret = initWorldMapScript(a1, a2, a3);
|
||||
std::cout << a1 << std::endl;
|
||||
std::cout << a2 << std::endl;
|
||||
return ret;
|
||||
}
|
||||
|
||||
int _TimerDispatcher_dispatch(void *A, void *B)
|
||||
{
|
||||
int ret = TimerDispatcher_dispatch(A, B);
|
||||
@@ -861,6 +871,9 @@ void Lenheart()
|
||||
|
||||
// 每帧执行
|
||||
SUBHOOK_SETUP(TimerDispatcher_dispatch);
|
||||
|
||||
SUBHOOK_SETUP(initWorldMapScript);
|
||||
|
||||
// 设置角色等级
|
||||
// SUBHOOK_SETUP(SetUserMaxLevel);
|
||||
|
||||
|
||||
@@ -5,6 +5,7 @@
|
||||
#include <dlfcn.h>
|
||||
#include <execinfo.h>
|
||||
#include <elf.h>
|
||||
#include <string>
|
||||
|
||||
#define PADALIGN(x, mask) ((x + mask) & (~(x % mask)))
|
||||
|
||||
@@ -114,4 +115,6 @@ typedef void *(*fnSetUserMaxLevel)(void *CUser, int level);
|
||||
|
||||
typedef int (*fnAddMob)(int a1, int a2);
|
||||
|
||||
typedef int (*fninitWorldMapScript)(void *a1, void *a2, void *a3);
|
||||
|
||||
__END_DECLS
|
||||
Reference in New Issue
Block a user