You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
varattributeTypeContext=AppContext.ResolveContextForType(constructor.DeclaringType!)??thrownew($"Unable to find type {constructor.DeclaringType!.FullName}");
290
-
varattributeMethodContext=attributeTypeContext.GetMethod(constructor)??thrownew($"Unable to find method {constructor.Name} in type {attributeTypeContext.Definition?.FullName}");
Logger.ErrorNewline($"Failed to read attribute data for {constructor}, which has parameters {string.Join(", ",constructor.Parameters!.Select(p =>p.Type))}","CA Restore");
295
+
Logger.ErrorNewline($"Failed to read attribute data for {constructor}, which has parameters {string.Join(", ",constructor.Parameters.Select(p =>p.ParameterType))}","CA Restore");
299
296
Logger.ErrorNewline($"This member ({ToString()}) has {RawIl2CppCustomAttributeData.Length} bytes of data starting at 0x{GetV29BlobOffsets()!.Value.blobStart:X}","CA Restore");
300
297
Logger.ErrorNewline($"The post-constructor data started at 0x{startOfData:X} bytes into our blob","CA Restore");
301
298
Logger.ErrorNewline($"Data for this constructor started at 0x{perAttributeStartOffsets[constructor]:X} bytes into our blob, we are now 0x{blobStream.Position:X} bytes into the blob","CA Restore");
@@ -83,8 +86,14 @@ private static T ResolveMemberFromIndex<T>(Stream stream, MethodAnalysisContext
83
86
memberIndex=-(memberIndex+1);
84
87
85
88
//Resolve type
86
-
vartypeDef=context.Metadata.GetTypeDefinitionFromIndex(Il2CppVariableWidthIndex<Il2CppTypeDefinition>.MakeTemporaryForFixedWidthUsage((int)typeIndex));//DynWidth: typeIndex is already compressed, they didn't make it dynamic
87
-
vartypeContext=context.ResolveContextForType(typeDef)??thrownew("Unable to find type "+typeDef);
vartypeDef=context.Metadata.GetTypeDefinitionFromIndex(Il2CppVariableWidthIndex<Il2CppTypeDefinition>.MakeTemporaryForFixedWidthUsage((int)typeIndex));//DynWidth: typeIndex is already compressed, they didn't make it dynamic
95
+
typeContext=context.ResolveContextForType(typeDef)??thrownew("Unable to find type "+typeDef);
0 commit comments