This commit is contained in:
HolographicHat
2022-09-28 11:09:32 +08:00
parent 07a08f56d4
commit 553d67bff7
2 changed files with 0 additions and 9 deletions

View File

@@ -68,10 +68,7 @@ namespace Hook {
if (signatures.count(type)) {
return GCHandle_GetObject<ByteArray>(signatures[type]);
}
auto encoder = Genshin::Encoding_GetDefault(nullptr);
auto result = CALL_ORIGIN(UnityEngine_RecordUserData, type);
auto str = Genshin::Encoding_GetString(encoder, result, nullptr);
printf("RecordUserData%d: %s\n", type, IlStringToString(str).c_str());
signatures[type] = GCHandle_New(result, true);
return result;
}

View File

@@ -25,9 +25,3 @@ DO_APP_FUNC(0x0094FBD0, 0x0094FCF0, int, KcpSend, (void* client, KcpPacket* pkt,
// N: MoleMole.KcpClient$TryDequeueEvent [Obfuscated]
// L: Assembly-CSharp
DO_APP_FUNC(0x026C8690, 0x026C9030, bool, KcpRecv, (void* client, ClientKcpEvent* evt, void* method));
DO_APP_FUNC(0x054AC8A0, 0x054AC8A0, void*, Encoding_GetDefault, (void* method));
// N: System.Text.Encoding$GetBytes
// L: mscorlib
DO_APP_FUNC(0x054AB010, 0x054AB010, Il2CppString*, Encoding_GetString, (void* obj, ByteArray* s, void* method));