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;
}