migrate versioning to StructVersion class, add handling/detection for 29.2/31.2

This commit is contained in:
LukeFZ
2024-08-13 15:00:20 +02:00
parent 22ecdc3612
commit 23e873280d
24 changed files with 181 additions and 84 deletions

View File

@@ -3,6 +3,7 @@ using System.Text;
using System;
using System.Diagnostics;
using System.IO;
using Il2CppInspector.Next;
namespace Il2CppInspector.Utils;
@@ -111,7 +112,7 @@ public static class BlobReader
int ReadInt32()
{
if (blob.Version >= 29)
if (blob.Version >= MetadataVersions.V290)
{
var address = blob.Position;
@@ -131,7 +132,7 @@ public static class BlobReader
uint ReadUInt32()
{
if (blob.Version >= 29)
if (blob.Version >= MetadataVersions.V290)
{
var address = blob.Position;