DLL: Fix failure to import some signatures
This commit is contained in:
@@ -337,10 +337,14 @@ namespace Il2CppInspector.Outputs
|
|||||||
|
|
||||||
// Convert Il2CppInspector TypeInfo into type reference and import to specified module
|
// Convert Il2CppInspector TypeInfo into type reference and import to specified module
|
||||||
private ITypeDefOrRef GetTypeRef(ModuleDef module, TypeInfo type)
|
private ITypeDefOrRef GetTypeRef(ModuleDef module, TypeInfo type)
|
||||||
=> module.Import(GetTypeSig(module, type)).ToTypeDefOrRef();
|
=> GetTypeSig(module, type).ToTypeDefOrRef();
|
||||||
|
|
||||||
|
// Convert Il2CppInspector TypeInfo into type signature and import to specified module
|
||||||
|
private TypeSig GetTypeSig(ModuleDef module, TypeInfo type)
|
||||||
|
=> module.Import(GetTypeSigImpl(module, type));
|
||||||
|
|
||||||
// Convert Il2CppInspector TypeInfo into type signature
|
// Convert Il2CppInspector TypeInfo into type signature
|
||||||
private TypeSig GetTypeSig(ModuleDef module, TypeInfo type) {
|
private TypeSig GetTypeSigImpl(ModuleDef module, TypeInfo type) {
|
||||||
if (type == null)
|
if (type == null)
|
||||||
return null;
|
return null;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user