From 1e9d2e52c947262174b1374eff810963b38e360f Mon Sep 17 00:00:00 2001 From: Pat Hartl Date: Sun, 8 Jan 2023 12:10:20 -0600 Subject: [PATCH] Avoid exceptions when manifest has more properties than current model --- LANCommander.Playnite.Extension/PlayniteLibraryPlugin.cs | 1 + LANCommander/Controllers/ArchivesController.cs | 1 + LANCommander/Services/ArchiveService.cs | 1 + 3 files changed, 3 insertions(+) diff --git a/LANCommander.Playnite.Extension/PlayniteLibraryPlugin.cs b/LANCommander.Playnite.Extension/PlayniteLibraryPlugin.cs index 9cee66e..2127180 100644 --- a/LANCommander.Playnite.Extension/PlayniteLibraryPlugin.cs +++ b/LANCommander.Playnite.Extension/PlayniteLibraryPlugin.cs @@ -182,6 +182,7 @@ namespace LANCommander.PlaynitePlugin { var manifestContents = File.ReadAllText(manifestPath); var deserializer = new DeserializerBuilder() + .IgnoreUnmatchedProperties() .WithNamingConvention(PascalCaseNamingConvention.Instance) .Build(); diff --git a/LANCommander/Controllers/ArchivesController.cs b/LANCommander/Controllers/ArchivesController.cs index 1d6ee61..e72bb88 100644 --- a/LANCommander/Controllers/ArchivesController.cs +++ b/LANCommander/Controllers/ArchivesController.cs @@ -149,6 +149,7 @@ namespace LANCommander.Controllers } var deserializer = new DeserializerBuilder() + .IgnoreUnmatchedProperties() .WithNamingConvention(PascalCaseNamingConvention.Instance) .Build(); diff --git a/LANCommander/Services/ArchiveService.cs b/LANCommander/Services/ArchiveService.cs index b50f105..cf4a2e5 100644 --- a/LANCommander/Services/ArchiveService.cs +++ b/LANCommander/Services/ArchiveService.cs @@ -30,6 +30,7 @@ namespace LANCommander.Services } var deserializer = new DeserializerBuilder() + .IgnoreUnmatchedProperties() .WithNamingConvention(PascalCaseNamingConvention.Instance) .Build();