Don't grab icon from old icon route
parent
37f9027a80
commit
f0c8296b6e
|
@ -146,7 +146,6 @@ namespace LANCommander.PlaynitePlugin
|
||||||
GameId = game.Id.ToString(),
|
GameId = game.Id.ToString(),
|
||||||
ReleaseDate = new ReleaseDate(manifest.ReleasedOn),
|
ReleaseDate = new ReleaseDate(manifest.ReleasedOn),
|
||||||
//Version = game.Archives.OrderByDescending(a => a.CreatedOn).FirstOrDefault().Version,
|
//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()
|
GameActions = game.Actions.OrderBy(a => a.SortOrder).Select(a => new PN.SDK.Models.GameAction()
|
||||||
{
|
{
|
||||||
Name = a.Name,
|
Name = a.Name,
|
||||||
|
@ -454,8 +453,6 @@ namespace LANCommander.PlaynitePlugin
|
||||||
else
|
else
|
||||||
game.GameActions.Clear();
|
game.GameActions.Clear();
|
||||||
|
|
||||||
game.Icon = $"{Settings.ServerAddress}{manifest.Icon}";
|
|
||||||
|
|
||||||
if (manifest.Actions == null)
|
if (manifest.Actions == null)
|
||||||
throw new Exception("The game has no actions defined.");
|
throw new Exception("The game has no actions defined.");
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue