Skip to content

Commit

Permalink
Release v0.6.0
Browse files Browse the repository at this point in the history
  • Loading branch information
mtkennerly committed Oct 8, 2021
1 parent 33294a6 commit 8a47b95
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 6 deletions.
6 changes: 6 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
## v0.6.0 (2021-10-08)

* Changed:
* Updated for Playnite 9 and dropped support for earlier Playnite versions.
([Contributed by sharkusmanch](https://github.com/mtkennerly/ludusavi-playnite/pull/19))

## v0.5.1 (2020-11-16)

* Fixed:
Expand Down
2 changes: 1 addition & 1 deletion manifest.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ AddonId: mtkennerly.ludusavi
Packages:
- Version: 0.6.0
RequiredApiVersion: 6.0.0
ReleaseDate: 2021-09-07
ReleaseDate: 2021-10-08
PackageUrl: https://github.com/mtkennerly/ludusavi-playnite/releases/download/v0.6.0/ludusavi-playnite-v0.6.0.pext
Changelog:
- Playnite 9 support
9 changes: 4 additions & 5 deletions src/LudusaviPlaynite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -328,17 +328,16 @@ private bool UserConsents(string message)

private bool ShouldSkipGame(Game game)
{
return game.Tags != null
&& game.Tags.Any(x => x.Name == "ludusavi-skip")
&& game.Platforms.Count > 1;
return (game.Tags != null
&& game.Tags.Any(x => x.Name == "ludusavi-skip"))
|| game.Platforms.Count > 1;
}

string GetGameName(Game game)
{
if (!IsOnPc(game) && settings.AddSuffixForNonPcGameNames)
{
string platformName = game.Platforms[0]?.Name;
return string.Format("{0}{1}", game.Name, settings.SuffixForNonPcGameNames.Replace("<platform>", platformName));
return string.Format("{0}{1}", game.Name, settings.SuffixForNonPcGameNames.Replace("<platform>", game.Platforms[0]?.Name));
}
else
{
Expand Down

0 comments on commit 8a47b95

Please sign in to comment.