111
This commit is contained in:
@@ -25,6 +25,7 @@ void hook::H_Register_Pack(void* Ecx)
|
||||
|
||||
void _fastcall hook::H_Register_DrawCode(DWORD thisc, int Seat, int a3, int a4, int a5, int a6)
|
||||
{
|
||||
|
||||
if (a3 == 9999 && a4 == 9999)
|
||||
{
|
||||
for (DrawCodestruct iter : DrawCodeT1_STL)
|
||||
@@ -36,6 +37,16 @@ void _fastcall hook::H_Register_DrawCode(DWORD thisc, int Seat, int a3, int a4,
|
||||
}
|
||||
if (a3 == 9999 && a4 == 9998)
|
||||
{
|
||||
|
||||
uint32_t v = GetSqVm();
|
||||
SQPushRootTable(v);
|
||||
SQPushString(v, L"DrawMainMaxLayerCustomUI", -1);
|
||||
SQ_Get(v, -2);
|
||||
SQPushRootTable(v);
|
||||
SQPushString(v, L"Lenheart", -1);
|
||||
SQ_Call(v, 2, 1, 0);
|
||||
SQPop(v, 2);
|
||||
|
||||
for (DrawCodestruct iter : DrawCodeT2_STL)
|
||||
{
|
||||
//wchar_t* str = DNFTOOL::charTowchar_t((char*)iter.str.c_str());
|
||||
@@ -72,7 +83,7 @@ int hook::RegisterHook()
|
||||
int hook::InitGameScript()
|
||||
{
|
||||
|
||||
|
||||
#if defined LOCALHOSTS_SWITCH
|
||||
uint32_t v = GetSqVm();
|
||||
SQPushRootTable(v);
|
||||
SQPushString(v, L"SetHudUI", -1);
|
||||
@@ -81,10 +92,15 @@ int hook::InitGameScript()
|
||||
SQPushString(v, L"1.cpp", -1);
|
||||
SQ_Call(v, 2, 1, 0);
|
||||
SQPop(v, 2);
|
||||
|
||||
|
||||
|
||||
std::cout << u8"调用成功" << std::endl;
|
||||
|
||||
#else
|
||||
uint32_t v = GetSqVm();
|
||||
SQPushRootTable(v);
|
||||
SQPushString(v, L"L_sq_Dofile", -1);
|
||||
SQ_Get(v, -2);
|
||||
SQPushRootTable(v);
|
||||
SQPushString(v, L"licbylist.dll", -1);
|
||||
SQ_Call(v, 2, 1, 0);
|
||||
SQPop(v, 2);
|
||||
#endif
|
||||
return 0;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user