From 213f0375d3bd906d7b1f2d64ee0210261f25cb22 Mon Sep 17 00:00:00 2001 From: Vitalii Mikhailov Date: Mon, 2 Sep 2024 00:08:10 +0300 Subject: [PATCH] Potential fix to prevent Steam Workshop check while the game is still being downloaded --- src/Bannerlord.LauncherManager/Utils/ModulePathProvider.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Bannerlord.LauncherManager/Utils/ModulePathProvider.cs b/src/Bannerlord.LauncherManager/Utils/ModulePathProvider.cs index b7320d9..e1d82bf 100644 --- a/src/Bannerlord.LauncherManager/Utils/ModulePathProvider.cs +++ b/src/Bannerlord.LauncherManager/Utils/ModulePathProvider.cs @@ -54,7 +54,7 @@ public SteamModuleProvider(LauncherManagerHandler handler) public IEnumerable GetModulePaths() { var installPath = _handler.GetInstallPath(); - if (!installPath.ToLower().Contains("steamapps")) + if (!installPath.ToLower().Contains("steamapps") || !installPath.ToLower().Contains("common")) yield break; var steamApps = installPath.Substring(0, installPath.IndexOf("common", StringComparison.Ordinal));