Skip to content

Commit

Permalink
resolve #32, LaunchBox arcade playlists are not properly loaded
Browse files Browse the repository at this point in the history
  • Loading branch information
retropassdev committed Apr 13, 2023
1 parent 2abcd9c commit 04f064b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 4 additions & 1 deletion RetroPass/DataSourceLaunchBox.cs
Expand Up @@ -273,7 +273,10 @@ public async Task<List<PlaylistLaunchBox>> LoadPlaylistsXmls(StorageFolder dataF
XmlSerializer serializer = new XmlSerializer(typeof(PlaylistLaunchBox));
// Call the Deserialize method to restore the object's state.
PlaylistLaunchBox playlistLaunchBox = serializer.Deserialize(reader) as PlaylistLaunchBox;
playlistLaunchBoxList.Add(playlistLaunchBox);
if (playlistLaunchBox.PlaylistGames != null)
{
playlistLaunchBoxList.Add(playlistLaunchBox);
}
}
}
}
Expand Down
6 changes: 6 additions & 0 deletions RetroPass/Game.cs
Expand Up @@ -40,6 +40,12 @@ public abstract class Game

private async Task<StorageFile> FindImageThumbnailAsync(StorageFolder folder)
{
//prevent some exceptions if folder is not defined
if(folder == null)
{
return null;
}

StorageFile boxFrontFile = null;

//tracer.Switch
Expand Down

0 comments on commit 04f064b

Please sign in to comment.