Skip to content

Commit

Permalink
Add a missing check when building the game groups for system if the p…
Browse files Browse the repository at this point in the history
…roper libretro info isn't present
  • Loading branch information
DanTheMan827 committed Oct 25, 2019
1 parent ac8f5a4 commit 2ee62c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Tasks/LoadGamesTask.cs
Original file line number Diff line number Diff line change
Expand Up @@ -238,7 +238,7 @@ public Tasker.Conclusion AssignGroupsToGames(Tasker tasker, Object syncObject =
group = game.IsOriginalGame ? normalGroups[ViewGroup.Original] : normalGroups[ViewGroup.Custom];
break;
case MainForm.GamesSorting.System:
if (!appInfo.Unknown)
if (!appInfo.Unknown && sortedGroups.ContainsKey(appInfo.Name))
group = sortedGroups[appInfo.Name];
else if (!string.IsNullOrEmpty(game.Metadata.System) && sortedGroups.ContainsKey(game.Metadata.System))
group = sortedGroups[game.Metadata.System];
Expand Down

0 comments on commit 2ee62c8

Please sign in to comment.