111
This commit is contained in:
40
test/函数块.cpp
40
test/函数块.cpp
@@ -342,7 +342,41 @@ static int SQdofile(uint32_t v, const wchar_t* filename, bool retval, bool print
|
||||
|
||||
|
||||
|
||||
void ggc(char* str,int type,int color)
|
||||
{
|
||||
int shangdian;
|
||||
int laba;
|
||||
int ggtype;
|
||||
int ggcolor;
|
||||
int ggstr;
|
||||
|
||||
//ggtype = 16;
|
||||
//ggcolor = 65535;
|
||||
shangdian = 0x1A5FB20;
|
||||
laba = 0x9536c0;
|
||||
ggtype = 16;
|
||||
ggcolor = 65535;
|
||||
ggstr = (int)str;
|
||||
//std::cout << ggstr << std::endl;
|
||||
|
||||
_asm
|
||||
{
|
||||
pushad
|
||||
mov ecx, dword ptr[ebp - 0x04]
|
||||
mov ecx, dword ptr[ecx]
|
||||
mov ecx, dword ptr[ecx + 0x40]
|
||||
push 0x00000000
|
||||
push 0x00000000
|
||||
push 0x00000000
|
||||
push 0x00000000
|
||||
push dword ptr[ebp - 0x0c]
|
||||
push dword ptr[ebp - 0x10]
|
||||
push dword ptr[ebp - 0x14]
|
||||
call dword ptr[ebp - 0x08]
|
||||
popad
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -373,6 +407,12 @@ void RegisterNutApi(const wchar_t* funcName, void* funcAddr, uint32_t v)
|
||||
static int sq_Test(uint32_t v)
|
||||
{
|
||||
//sq_pushinteger(v, n1);
|
||||
|
||||
|
||||
*(char**)0x400F00 = (char*)u"test";
|
||||
|
||||
_Noticecall(0x400F00, 65535, 14, 0, 0, 0, 0);
|
||||
|
||||
return 0;
|
||||
}
|
||||
//读人物 或 装备属性
|
||||
|
||||
Reference in New Issue
Block a user