DLL: Fix failure to import some signatures

This commit is contained in:
Katy Coe
2021-01-09 04:06:15 +01:00
parent 5540ba296b
commit 135984bbdd

View File

@@ -337,10 +337,14 @@ namespace Il2CppInspector.Outputs
// Convert Il2CppInspector TypeInfo into type reference and import to specified module
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
private TypeSig GetTypeSig(ModuleDef module, TypeInfo type) {
private TypeSig GetTypeSigImpl(ModuleDef module, TypeInfo type) {
if (type == null)
return null;