From 3be1de230c13ad0f77550933a2a56b5eb5568860 Mon Sep 17 00:00:00 2001 From: Jakub Vesely Date: Sat, 21 Oct 2023 15:59:24 +0200 Subject: [PATCH] Installers: Fix Steam library manifest parsing. Fixes #21129 --- .../Installer/SourceResolvers/SteamSourceResolver.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/OpenRA.Mods.Common/Installer/SourceResolvers/SteamSourceResolver.cs b/OpenRA.Mods.Common/Installer/SourceResolvers/SteamSourceResolver.cs index a2d1e85968..56de4f01ab 100644 --- a/OpenRA.Mods.Common/Installer/SourceResolvers/SteamSourceResolver.cs +++ b/OpenRA.Mods.Common/Installer/SourceResolvers/SteamSourceResolver.cs @@ -109,10 +109,15 @@ namespace OpenRA.Mods.Common.Installer continue; foreach (var e in ParseLibraryManifest(libraryFoldersPath).Where(e => e.Item1 == "path")) - yield return e.Item2; + yield return Unescape(e.Item2); } } + static string Unescape(string path) + { + return path.Replace(@"\\", @"\"); + } + static Dictionary ParseGameManifest(string path) { var regex = new Regex("^\\s*\"(?[^\"]*)\"\\s*\"(?[^\"]*)\"\\s*$");