mirror of
https://github.com/sinai-dev/UnityExplorer.git
synced 2025-06-16 14:17:51 +08:00
Update CacheObject.cs
This commit is contained in:
parent
6bafab785b
commit
19263092fe
@ -73,23 +73,6 @@ namespace Explorer
|
||||
holder.DeclaringType = memberInfo.DeclaringType;
|
||||
holder.DeclaringInstance = declaringInstance;
|
||||
|
||||
//if (declaringInstance is Il2CppSystem.Object ilInstance && ilInstance.GetType() != memberInfo.DeclaringType)
|
||||
//{
|
||||
// try
|
||||
// {
|
||||
// holder.DeclaringInstance = ilInstance.Il2CppCast(holder.DeclaringType);
|
||||
// }
|
||||
// catch (Exception e)
|
||||
// {
|
||||
// holder.ReflectionException = ReflectionHelpers.ExceptionToString(e);
|
||||
// holder.DeclaringInstance = declaringInstance;
|
||||
// }
|
||||
//}
|
||||
//else
|
||||
//{
|
||||
// holder.DeclaringInstance = declaringInstance;
|
||||
//}
|
||||
|
||||
if (memberInfo.MemberType == MemberTypes.Field)
|
||||
{
|
||||
holder.MemberInfoType = ReflectionWindow.MemberInfoType.Field;
|
||||
|
Loading…
x
Reference in New Issue
Block a user