0
0
mirror of https://github.com/sp-tarkov/assembly-tool.git synced 2025-02-13 09:50:44 -05:00

updated Type for autodumper

This commit is contained in:
CWX 2024-12-27 16:12:19 +00:00
parent 1cb48178da
commit c92a65f4e4
2 changed files with 12 additions and 10 deletions

View File

@ -265,14 +265,16 @@ public static class TypeHelper
var properties = x.GetProperties(); var properties = x.GetProperties();
var methods = x.GetMethods(); var methods = x.GetMethods();
return fields.Length == 25 && constructors.Length == 2 && return fields.Length == 26
properties.Length == 0 && methods.Length == 4 && && constructors.Length == 2
fields.Any(f => f.Name == "KarmaValue") && && properties.Length == 0
fields.Any(f => f.Name == "Encyclopedia") && && methods.Length == 4
fields.Any(f => f.Name == "Id") && && fields.Any(f => f.Name == "KarmaValue")
fields.Any(f => f.Name == "AccountId") && && fields.Any(f => f.Name == "Encyclopedia")
fields.Any(f => f.Name == "PetId") && && fields.Any(f => f.Name == "Id")
fields.Any(f => f.Name == "Customization"); && fields.Any(f => f.Name == "AccountId")
&& fields.Any(f => f.Name == "PetId")
&& fields.Any(f => f.Name == "Customization");
}); });
} }
catch (Exception e) catch (Exception e)

View File

@ -264,9 +264,9 @@ public class DumperClass
var method = type.Methods.First(DumpyReflectionHelper.GetRunValidationMethod); var method = type.Methods.First(DumpyReflectionHelper.GetRunValidationMethod);
var method2 = type.NestedTypes[0].Methods.First(DumpyReflectionHelper.GetRunValidationNextMethod); var method2 = type.NestedTypes[0].Methods.First(DumpyReflectionHelper.GetRunValidationNextMethod);
if (method == null || method.Body.Instructions.Count != 25) if (method == null || method.Body.Instructions.Count != 23)
{ {
Logger.Log($"RunValidation Instructions count has changed from 25 to {method.Body.Instructions.Count}"); Logger.Log($"RunValidation Instructions count has changed from 23 to {method.Body.Instructions.Count}");
} }
if (method2 == null || method2.Body.Instructions.Count != 171) if (method2 == null || method2.Body.Instructions.Count != 171)