Skip to content

Commit

Permalink
Potential fix to prevent Steam Workshop check while the game is still…
Browse files Browse the repository at this point in the history
… being downloaded
  • Loading branch information
Aragas committed Sep 1, 2024
1 parent 0b955af commit 213f037
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Bannerlord.LauncherManager/Utils/ModulePathProvider.cs
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ public SteamModuleProvider(LauncherManagerHandler handler)
public IEnumerable<string> 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));
Expand Down

0 comments on commit 213f037

Please sign in to comment.