Skip to content

Installers: Fix Steam library manifest parsing.#21140

Merged
PunkPun merged 1 commit into
OpenRA:bleedfrom
tinix0:steam-library-path-parsing-fix
Nov 4, 2023
Merged

Installers: Fix Steam library manifest parsing.#21140
PunkPun merged 1 commit into
OpenRA:bleedfrom
tinix0:steam-library-path-parsing-fix

Conversation

@tinix0

@tinix0 tinix0 commented Oct 21, 2023

Copy link
Copy Markdown
Contributor

Fixes #21129.
Steam library paths stored in manifest files have escaped backslashes on Windows and need to be unescaped. This either never worked on Windows or regressed since it was implemented.

@Mailaender Mailaender changed the title Installers: Fix Steam library manifest parsing. Fixes #21129 Installers: Fix Steam library manifest parsing. Oct 21, 2023
Comment thread OpenRA.Mods.Common/Installer/SourceResolvers/SteamSourceResolver.cs Outdated
@tinix0 tinix0 force-pushed the steam-library-path-parsing-fix branch from 44384dd to eb03445 Compare October 29, 2023 14:42

@RoosterDragon RoosterDragon left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Confirmed working for me.

The yield return libraryPath; line for me gives C:\Program Files (x86)\Steam which succeeds and skips the later logic. So that might explain why this wasn't noticed - on my machine and presumably others that didn't use a different install dir it was never executed. But if I comment that out and force it to check the inside libraryfolders.vdf that does indeed return C:\\Program Files (x86)\\Steam and the new unespacing logic fixes that into a valid path.

@PunkPun PunkPun left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While it doesn't regress anything on macOS, it feels a bit wrong to apply this to other OS's as well

@PunkPun PunkPun merged commit 3be1de2 into OpenRA:bleed Nov 4, 2023
@PunkPun

PunkPun commented Nov 4, 2023

Copy link
Copy Markdown
Member

Changelog

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Old assets installation from the Remaster does not work in all cases

4 participants