This commit is contained in:
2025-08-27 08:46:45 +08:00
parent 1fddc97e20
commit 79185568a0
13 changed files with 26503 additions and 429 deletions

View File

@@ -128,9 +128,8 @@ static void example_listener_on_enter(GumInvocationListener* listener, GumInvoca
else if (CONTAINS_STRING(self->ArgumentCount[i], "bool"))
Sq_pushbool(v, (bool)Abuf);
else if (CONTAINS_STRING(self->ArgumentCount[i], "string")) {
wchar_t* ss = DNFTOOL::charTowchar_t((char*)Abuf);
Sq_pushstring(v, ss, -1);
delete[]ss;
std::wstring ss = DNFTOOL::charTowchar_t((char*)Abuf);
Sq_pushstring(v, ss.c_str(), -1);
}
else if (CONTAINS_STRING(self->ArgumentCount[i], "pointer"))
Sq_pushuserpointer(v, (void*)Abuf);
@@ -228,9 +227,8 @@ static void example_listener_on_leave(GumInvocationListener* listener, GumInvoca
else if (CONTAINS_STRING(self->ArgumentCount[i], "bool"))
Sq_pushbool(v, (bool)Abuf);
else if (CONTAINS_STRING(self->ArgumentCount[i], "string")) {
wchar_t* ss = DNFTOOL::charTowchar_t((char*)Abuf);
Sq_pushstring(v, ss, -1);
delete[]ss;
std::wstring ss = DNFTOOL::charTowchar_t((char*)Abuf);
Sq_pushstring(v, ss.c_str(), -1);
}
else if (CONTAINS_STRING(self->ArgumentCount[i], "pointer"))
Sq_pushuserpointer(v, (void*)Abuf);