111
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
// dllmain.cpp : 定义 DLL 应用程序的入口点。
|
||||
#include "pch.h"
|
||||
//#include "函数块.h"
|
||||
|
||||
|
||||
|
||||
@@ -9,15 +8,6 @@
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
typedef int(SqGetStringFunc)(uint32_t v, uint32_t stackIndex, wchar_t** ppString);
|
||||
static SqGetStringFunc* SQGetString = (SqGetStringFunc*)0x1358E70;
|
||||
|
||||
|
||||
|
||||
static realSqNewClosure* MLnewclosure = NULL;
|
||||
|
||||
uint32_t NewClosure(uint32_t v, void* f, int freeVarsCnt)
|
||||
@@ -54,10 +44,6 @@ int HOOK()
|
||||
{
|
||||
std::cout << u8"开始hook" << std::endl;
|
||||
|
||||
if (MH_Initialize() != MH_OK)
|
||||
{
|
||||
return 1;
|
||||
}
|
||||
|
||||
/*
|
||||
if (MH_CreateHook((void*)0x135B850, &NewClosure,
|
||||
@@ -92,14 +78,11 @@ int HOOK()
|
||||
}
|
||||
|
||||
|
||||
|
||||
typedef int(isgm)(int C);
|
||||
static isgm* gm = (isgm*)0x176F380;
|
||||
|
||||
|
||||
void testcall()
|
||||
{
|
||||
|
||||
|
||||
//SQDofile(GetSqVm(),L"1.cpp",0,0);
|
||||
//std::cout << gm(0x186FB828) << std::endl;
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user