mirror of
https://github.com/HolographicHat/Yae.git
synced 2025-12-14 10:28:15 +08:00
fix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
@@ -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));
|
||||
|
||||
Reference in New Issue
Block a user