Tidy interface and zero RVA outputs

This commit is contained in:
Katy Coe
2017-11-28 16:00:01 +01:00
parent 484bcce7d1
commit 9d72cf3bcf
2 changed files with 21 additions and 15 deletions

View File

@@ -44,6 +44,10 @@ namespace Il2CppInspector.Reflection
protected MethodBase(TypeInfo declaringType) : base(declaringType) { }
public string GetModifierString() {
// Interface methods and properties have no visible modifiers (they are always declared 'public abstract')
if (DeclaringType.IsInterface)
return string.Empty;
StringBuilder modifiers = new StringBuilder();
if (IsPrivate)
@@ -72,7 +76,8 @@ namespace Il2CppInspector.Reflection
if ((Attributes & MethodAttributes.PinvokeImpl) != 0)
modifiers.Append("extern ");
return modifiers.ToString().Trim();
// Will include a trailing space
return modifiers.ToString();
}
}
}