diff --git a/lib/src/dllmain.cpp b/lib/src/dllmain.cpp index 4dffbd7..d36f6d1 100644 --- a/lib/src/dllmain.cpp +++ b/lib/src/dllmain.cpp @@ -68,10 +68,7 @@ namespace Hook { if (signatures.count(type)) { return GCHandle_GetObject(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; } diff --git a/lib/src/il2cpp-functions.h b/lib/src/il2cpp-functions.h index 4544930..6ab5240 100644 --- a/lib/src/il2cpp-functions.h +++ b/lib/src/il2cpp-functions.h @@ -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));