Skip to content

Commit

Permalink
Support new appinfo
Browse files Browse the repository at this point in the history
  • Loading branch information
xPaw committed Jun 27, 2024
1 parent 169a7dc commit 7ded675
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions SteamClientData.cs
Original file line number Diff line number Diff line change
Expand Up @@ -74,12 +74,17 @@ private static void ReadAppInfo(Table table, Payload payload, string filename)
using var reader = new BinaryReader(fs);
var magic = reader.ReadUInt32();

if (magic != 0x07_56_44_27 && magic != 0x07_56_44_28)
if (magic != 0x07_56_44_27 && magic != 0x07_56_44_28 && magic != 0x07_56_44_29)
{
throw new InvalidDataException($"Unknown appinfo.vdf magic: {magic:X}");
}

reader.ReadUInt32(); // universe
fs.Position += 4; // universe

if (magic == 0x07_56_44_29)
{
fs.Position += 8; // offset to string pool
}

do
{
Expand Down

0 comments on commit 7ded675

Please sign in to comment.