From 0927c487d411d08074b16938afa75b62f9838559 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=81=8D=E5=85=AE=E6=83=9A=E5=85=AE?= <101191390+HIllya51@users.noreply.github.com> Date: Sat, 14 Sep 2024 16:47:50 +0800 Subject: [PATCH] unity --- LunaHook/engines/mono/monocommon.hpp | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/LunaHook/engines/mono/monocommon.hpp b/LunaHook/engines/mono/monocommon.hpp index 66e7362..9a86d03 100644 --- a/LunaHook/engines/mono/monocommon.hpp +++ b/LunaHook/engines/mono/monocommon.hpp @@ -145,9 +145,9 @@ namespace monocommon std::vector commonhooks{ {"mscorlib", "System", "String", "ToCharArray", 0, 1}, {"mscorlib", "System", "String", "Replace", 2, 1}, - //{"mscorlib","System","String","ToString",0,1}, - //虽然可能会有少量误伤,但这个乱码太多了,而且不知道原因,为了大多数更好,还是删了吧。 - //一定要用的话,用特殊码:HMF1@mscorlib:System:String:ToString:0:JIT:UNITY + //{"mscorlib","System","String","ToString",0,1}, + // 虽然可能会有少量误伤,但这个乱码太多了,而且不知道原因,为了大多数更好,还是删了吧。 + // 一定要用的话,用特殊码:HMF1@mscorlib:System:String:ToString:0:JIT:UNITY {"mscorlib", "System", "String", "IndexOf", 1, 1}, {"mscorlib", "System", "String", "Substring", 2, 1}, {"mscorlib", "System", "String", "op_Inequality", 2, 1}, @@ -155,6 +155,7 @@ namespace monocommon {"Unity.TextMeshPro", "TMPro", "TMP_Text", "set_text", 1, 2, nullptr, true}, {"Unity.TextMeshPro", "TMPro", "TextMeshPro", "set_text", 1, 2, nullptr, true}, + {"Unity.TextMeshPro", "TMPro", "TextMeshProUGUI", "SetText", 2, 2, nullptr, true}, {"UnityEngine.UI", "UnityEngine.UI", "Text", "set_text", 1, 2, nullptr, true}, {"UnityEngine.UIElementsModule", "UnityEngine.UIElements", "TextElement", "set_text", 1, 2, nullptr, true}, {"UnityEngine.UIElementsModule", "UnityEngine.UIElements", "TextField", "set_value", 1, 2, nullptr, true},