Rework metadata struct loading to use new struct versioning
This commit is contained in:
@@ -8,6 +8,18 @@ namespace Il2CppInspector.Next;
|
||||
|
||||
public class BinaryObjectStreamReader : BinaryObjectStream, IReader
|
||||
{
|
||||
public new StructVersion Version
|
||||
{
|
||||
get => _version;
|
||||
set
|
||||
{
|
||||
_version = value;
|
||||
base.Version = _version.AsDouble;
|
||||
}
|
||||
}
|
||||
|
||||
private StructVersion _version;
|
||||
|
||||
public virtual int Bits { get; set; }
|
||||
public bool Is32Bit => Bits == 32;
|
||||
|
||||
@@ -127,4 +139,9 @@ public class BinaryObjectStreamReader : BinaryObjectStream, IReader
|
||||
Position = addr;
|
||||
return ReadVersionedObjectArray<TType>(count, Version);
|
||||
}
|
||||
|
||||
public void Skip(int count)
|
||||
{
|
||||
Position += count;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user