Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
spektor56 committed Sep 28, 2020
1 parent 1087f66 commit 5d21338
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion PegasusExportPlugin/PegasusExportPlugin.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>..\..\..\..\LaunchBox\Plugins\</OutputPath>
<OutputPath>..\..\..\..\..\LaunchBox\Plugins\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
Expand Down
7 changes: 5 additions & 2 deletions PegasusExportPlugin/frmPegasusExport.cs
Original file line number Diff line number Diff line change
Expand Up @@ -127,8 +127,11 @@ await Task.Run(() =>
{
foreach (var playlistSetting in playlistsToExport)
{
gamesByPlatform.Add(playlistSetting.Games.OrderBy(game => game.SortTitleOrTitle)
.GroupBy(game => new { Platform= playlistSetting.Name, IsPlaylist = true }).First());
if (playlistSetting.Games.Length > 0)
{
gamesByPlatform.Add(playlistSetting.Games.OrderBy(game => game.SortTitleOrTitle)
.GroupBy(game => new {Platform = playlistSetting.Name, IsPlaylist = true}).First());
}
}
}

Expand Down

0 comments on commit 5d21338

Please sign in to comment.