diff --git a/src/GameFinder.StoreHandlers.Steam/Models/LibraryFolder.cs b/src/GameFinder.StoreHandlers.Steam/Models/LibraryFolder.cs index 33a54a56..e79723c4 100644 --- a/src/GameFinder.StoreHandlers.Steam/Models/LibraryFolder.cs +++ b/src/GameFinder.StoreHandlers.Steam/Models/LibraryFolder.cs @@ -57,7 +57,7 @@ public sealed record LibraryFolder /// public Size GetFreeSpaceEstimate() => TotalDiskSize - GetTotalSizeOfInstalledApps(); - private static readonly RelativePath SteamAppsDirectoryName = "steamapps".ToRelativePath(); + public static readonly RelativePath SteamAppsDirectoryName = "steamapps".ToRelativePath(); /// /// Returns an enumerable for every appmanifest_*.acf file path in the current library. diff --git a/src/GameFinder.StoreHandlers.Steam/SteamHandler.cs b/src/GameFinder.StoreHandlers.Steam/SteamHandler.cs index 757a0cd6..679eb446 100644 --- a/src/GameFinder.StoreHandlers.Steam/SteamHandler.cs +++ b/src/GameFinder.StoreHandlers.Steam/SteamHandler.cs @@ -81,7 +81,8 @@ public override IEnumerable> FindAllGames() foreach (var libraryFolder in libraryFolders) { var libraryFolderPath = libraryFolder.Path; - if (!_fileSystem.DirectoryExists(libraryFolderPath)) + if (!_fileSystem.DirectoryExists(libraryFolderPath) || + !_fileSystem.DirectoryExists(libraryFolderPath.Combine(Models.LibraryFolder.SteamAppsDirectoryName))) { yield return new ErrorMessage($"Steam Library at {libraryFolderPath} doesn't exist!"); continue;