IL2CPP: Add Unity 2021.1 TODOs

This commit is contained in:
Katy Coe
2020-11-26 21:42:16 +01:00
parent 479aeb7bcd
commit 7289001933
2 changed files with 2 additions and 0 deletions

View File

@@ -63,6 +63,7 @@ namespace Il2CppInspector.Reflection
public string Name => $"RuntimeInvoker_{!IsStatic}{ReturnType.BaseName.ToCIdentifier()}_" + string.Join("_", ParameterTypes.Select(p => p.BaseName.ToCIdentifier()));
// Display as a C++ method signature; MethodInfo* is the same as RuntimeMethod* (see codegen/il2cpp-codegen-metadata.h)
// TODO: Unity 2021.1: the return value is now an extra argument, and the invokers always return void
public string GetSignature(UnityVersion version) =>
version.CompareTo("2017.1.0") >= 0
? $"void* {Name}(Il2CppMethodPointer pointer, const MethodInfo* methodMetadata, void* obj, void** args)"