From 9631f24f368b122f65325bd3591bbd87d7941a91 Mon Sep 17 00:00:00 2001 From: Janne Pulkkinen Date: Fri, 5 Jul 2024 11:31:48 +0300 Subject: [PATCH] Support appinfo.vdf V29 Steam beta introduced a new version of appinfo.vdf with a space-saving optimization. Field keys are stored in a separate table at the end of the file, with the actual VDF segments having to be parsed using the table to map the indices to actual field names. `vdf` library does not support serializing appinfo.vdf using this format, at least yet, so just use appinfo.vdf V28 in tests for the time being. This might need to be fixed in the future once appinfo.vdf V28 is phased out. Fixes #304 --- src/protontricks/steam.py | 54 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/src/protontricks/steam.py b/src/protontricks/steam.py index db47cd1..00e4bf0 100644 --- a/src/protontricks/steam.py +++ b/src/protontricks/steam.py @@ -471,6 +471,7 @@ def find_legacy_steam_runtime_path(steam_root): APPINFO_STRUCT_HEADER = "<4sL" APPINFO_V28_STRUCT_SECTION = "