Skip to content

Commit

Permalink
Fix for GOG DLC showing up as games.
Browse files Browse the repository at this point in the history
  • Loading branch information
beeradmoore committed Dec 26, 2023
1 parent 1fc0e31 commit a0a0206
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/Data/GOG/GOGLibrary.cs
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,13 @@ public async Task<List<Game>> ListGamesAsync()
var gameName = gameKey.GetValue("gameName") as String;
var gamePath = gameKey.GetValue("path") as String;

// If the entry is DLC we don't need to show it as an individual item.
var dependsOn = gameKey.GetValue("dependsOn") as String;
if (String.IsNullOrEmpty(dependsOn) == false)
{
continue;
}

if (Int32.TryParse(gameId, out int gameIdInt) == true && String.IsNullOrEmpty(gameName) == false && String.IsNullOrEmpty(gamePath) == false)
{
var game = new GOGGame()
Expand Down

0 comments on commit a0a0206

Please sign in to comment.