Skip to content

Commit

Permalink
Bugfix - Handle UInt32 properties in new saves
Browse files Browse the repository at this point in the history
  • Loading branch information
tylercamp committed Jul 8, 2024
1 parent 1d749bb commit 22f6b72
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
11 changes: 11 additions & 0 deletions PalCalc.SaveReader/FArchive/FArchiveReader.cs
Original file line number Diff line number Diff line change
Expand Up @@ -240,6 +240,17 @@ public IProperty ReadProperty(string typeName, ulong size, string path, string n
return res;
}

case "UInt32Property":
{
var res = LiteralProperty.Create(path, ReadOptionalGuid(), ReadUInt32());
foreach (var v in pathVisitors)
{
v.VisitLiteralProperty(path, res);
v.VisitUInt32(path, (UInt32)res.Value);
}
return res;
}

case "Int64Property":
{
var res = LiteralProperty.Create(path, ReadOptionalGuid(), ReadInt64());
Expand Down
1 change: 1 addition & 0 deletions PalCalc.SaveReader/FArchive/IVisitor.cs
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,7 @@ public virtual void Exit()
}

public virtual void VisitInt(string path, int value) { }
public virtual void VisitUInt32(string path, uint value) { }
public virtual void VisitInt64(string path, long value) { }
public virtual void VisitDouble(string path, int value) { } // ??????????????
public virtual void VisitFloat(string path, float value) { }
Expand Down

0 comments on commit 22f6b72

Please sign in to comment.