ValvePython / vdf

📜 Package for working with Valve's text and binary KeyValue format
https://pypi.org/project/vdf/
MIT License
165 stars 30 forks source link

Should \x02 be UINT32? #44

Open ZackWeinstein opened 2 years ago

ZackWeinstein commented 2 years ago

From my shortcuts.vdf file, Halo Infinite has the appid C0 83 BF F8 which in python when read is displayed as the following. `

print(d["shortcuts"]["103"]["appid"]) -121666624 `

Steam uses the appid for grid images. It seems like the byte data is being read as uint32 instead of int32 by steam. The same thing happens with all shortcuts ids I've checked. `

print(d["shortcuts"]["103"]["icon"]) C:\Program Files (x86)\Steam\userdata\XYZ\config\grid\4173300672_icon.ico `

dacid44 commented 1 year ago

+1, this still seems to be a thing. The appIDs given by parsing shortcuts.vdf don't match up with what you get when generating a desktop shortcut, either.