Simplify string obfuscation processing

This commit is contained in:
Sinai
2021-05-07 01:53:02 +10:00
parent 8534c08f49
commit 56875e0641
3 changed files with 15 additions and 28 deletions

View File

@ -166,15 +166,14 @@ namespace UnityExplorer.UI.Utility
toString = ex.ReflectionExToString();
}
string _ = null;
toString = ReflectionUtility.ProcessTypeInString(type, toString, ref _);
toString = ReflectionUtility.ProcessTypeInString(type, toString);
#if CPP
if (value is Il2CppSystem.Type cppType)
{
var monoType = Il2CppReflection.GetUnhollowedType(cppType);
if (monoType != null)
toString = ReflectionUtility.ProcessTypeInString(monoType, toString, ref _);
toString = ReflectionUtility.ProcessTypeInString(monoType, toString);
}
#endif