AppModel/C++/JSON/Script: Don't output generic method definitions (no compiled code)

This commit is contained in:
Katy Coe
2020-08-04 05:14:19 +02:00
parent 86dec121e5
commit eb55e5b527
3 changed files with 11 additions and 5 deletions

View File

@@ -64,7 +64,7 @@ namespace Il2CppInspector.Outputs
}
private void writeMethods(IEnumerable<AppMethod> methods) {
foreach (var method in methods) {
foreach (var method in methods.Where(m => m.HasCompiledCode)) {
writeObject(() => {
writeTypedFunctionName(method.MethodCodeAddress, method.CppFnPtrType.ToSignatureString(), method.CppFnPtrType.Name);
writeDotNetSignature(method.Method);
@@ -123,7 +123,7 @@ namespace Il2CppInspector.Outputs
// Metedata usage methods
writeArray("methodInfoPointers",
() => {
foreach (var method in model.Methods.Values.Where(m => m.MethodInfoPtrAddress != 0xffffffff_ffffffff)) {
foreach (var method in model.Methods.Values.Where(m => m.HasMethodInfo)) {
writeObject(() => {
writeName(method.MethodInfoPtrAddress, $"{method.CppFnPtrType.Name}__MethodInfo");
writeDotNetSignature(method.Method);