Skip to content
This repository has been archived by the owner on Nov 17, 2024. It is now read-only.

Commit

Permalink
unity
Browse files Browse the repository at this point in the history
  • Loading branch information
HIllya51 committed Sep 14, 2024
1 parent ffb7b7d commit 0927c48
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions LunaHook/engines/mono/monocommon.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -145,16 +145,17 @@ namespace monocommon
std::vector<functioninfo> 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},
{"mscorlib", "System", "String", "InternalSubString", 2, 1, mscorlib_system_string_InternalSubString_hook_fun},

{"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},
Expand Down

0 comments on commit 0927c48

Please sign in to comment.