Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

libraryfolders.vdf layout changed #3

Closed
CosmicHorrorDev opened this issue Jan 15, 2022 · 2 comments
Closed

libraryfolders.vdf layout changed #3

CosmicHorrorDev opened this issue Jan 15, 2022 · 2 comments

Comments

@CosmicHorrorDev
Copy link
Collaborator

It looks like some Steam update changed the layout used in libraryfolders.vdf. Here is an anonymized version from my windows install:

"libraryfolders"
{
	"contentstatsid"		"-9876543210987654321"
	"0"
	{
		"path"		"C:\\Program Files (x86)\\Steam"
		"label"		""
		"contentid"		"-9876543210987654321"
		"totalsize"		"0"
		"update_clean_bytes_tally"		"98765432109"
		"time_last_update_corruption"		"0"
		"apps"
		{
			"111"		"12345678901"
			"210987"		"9998887776"
		}
	}
	"1"
	{
		"path"		"D:\\SteamLibrary"
		"label"		""
		"contentid"		"7654321098765432109"
		"totalsize"		"123456789012"
		"update_clean_bytes_tally"		"11223344556"
		"time_last_update_corruption"		"0"
		"apps"
		{
			"10"		"101112131"
		}
	}
}

This matches the same layout present on my linux install

Notably there is a parse error before any information can be extracted because steamy-vdf has an issue parsing empty strings and the new layout contains the pair "label" "". Changing the labels' values manually to contain some text gets past the parse error and instead fails on the different layout

@CosmicHorrorDev
Copy link
Collaborator Author

If you're open to it I can swap out the parser for the vdf parsing library I made, since steamy-vdf doesn't seem to be maintained.

It would be a breaking change since types from steamy-vdf are exposed directly, but it could be a good opportunity to clean up the public API a bit

@WilliamVenner
Copy link
Owner

Honestly go right ahead. I welcome any of your contributions :D

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants