Don't grab icon from old icon route

save-path-regex
Pat Hartl 2023-11-03 00:10:13 -05:00
parent 37f9027a80
commit f0c8296b6e
1 changed files with 0 additions and 3 deletions

View File

@ -146,7 +146,6 @@ namespace LANCommander.PlaynitePlugin
GameId = game.Id.ToString(),
ReleaseDate = new ReleaseDate(manifest.ReleasedOn),
//Version = game.Archives.OrderByDescending(a => a.CreatedOn).FirstOrDefault().Version,
Icon = new MetadataFile($"{Settings.ServerAddress}{manifest.Icon}"),
GameActions = game.Actions.OrderBy(a => a.SortOrder).Select(a => new PN.SDK.Models.GameAction()
{
Name = a.Name,
@ -454,8 +453,6 @@ namespace LANCommander.PlaynitePlugin
else
game.GameActions.Clear();
game.Icon = $"{Settings.ServerAddress}{manifest.Icon}";
if (manifest.Actions == null)
throw new Exception("The game has no actions defined.");