Skip to content

Commit 3350f33

Browse files
committed
playnite 8
1 parent 8ff6cd2 commit 3350f33

File tree

7 files changed

+18
-29
lines changed

7 files changed

+18
-29
lines changed
-208 KB
Binary file not shown.

RAWGMetadata/Lib/Playnite.dll

-846 KB
Binary file not shown.

RAWGMetadata/RAWGMetadata.csproj

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -32,14 +32,6 @@
3232
<WarningLevel>4</WarningLevel>
3333
</PropertyGroup>
3434
<ItemGroup>
35-
<Reference Include="Playnite, Version=7.9.0.18735, Culture=neutral, processorArchitecture=x86">
36-
<SpecificVersion>False</SpecificVersion>
37-
<HintPath>Lib\Playnite.dll</HintPath>
38-
</Reference>
39-
<Reference Include="Playnite.Common, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL">
40-
<SpecificVersion>False</SpecificVersion>
41-
<HintPath>Lib\Playnite.Common.dll</HintPath>
42-
</Reference>
4335
<Reference Include="System" />
4436
<Reference Include="System.Data" />
4537
<Reference Include="System.Drawing" />
@@ -103,7 +95,7 @@
10395
</ItemGroup>
10496
<ItemGroup>
10597
<PackageReference Include="PlayniteSDK">
106-
<Version>5.2.0-rc</Version>
98+
<Version>5.4.0</Version>
10799
</PackageReference>
108100
</ItemGroup>
109101
<ItemGroup>
@@ -113,9 +105,5 @@
113105
</ProjectReference>
114106
</ItemGroup>
115107
<ItemGroup />
116-
<ItemGroup>
117-
<Content Include="Lib\Playnite.Common.dll" />
118-
<Content Include="Lib\Playnite.dll" />
119-
</ItemGroup>
120108
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
121109
</Project>

RAWGMetadata/RawgMetadataSettings.cs

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ namespace RAWGMetadata
66
{
77
public class RawgMetadataSettings : ObservableObject, ISettings
88
{
9-
private RawgMetadataSettings editingClone;
10-
private readonly RawgMetadataPlugin plugin;
9+
private RawgMetadataSettings _editingClone;
10+
private readonly RawgMetadataPlugin _plugin;
1111

1212
public RawgMetadataSettings()
1313
{
@@ -68,29 +68,29 @@ public RawgMetadataSettings()
6868

6969
public RawgMetadataSettings(RawgMetadataPlugin plugin)
7070
{
71-
this.plugin = plugin;
71+
this._plugin = plugin;
7272

73-
var settings = plugin.LoadPluginSettings<RawgMetadataSettings>();
74-
if (settings != null)
73+
var savedSettings = plugin.LoadPluginSettings<RawgMetadataSettings>();
74+
if (savedSettings != null)
7575
{
76-
LoadValues(settings);
76+
RestoreSettings(savedSettings);
7777
}
7878

7979
}
8080

8181
public void BeginEdit()
8282
{
83-
editingClone = this.GetClone();
83+
_editingClone = new RawgMetadataSettings(_plugin);
8484
}
8585

8686
public void EndEdit()
8787
{
88-
plugin.SavePluginSettings(this);
88+
_plugin.SavePluginSettings(this);
8989
}
9090

9191
public void CancelEdit()
9292
{
93-
LoadValues(editingClone);
93+
RestoreSettings(_editingClone);
9494
}
9595

9696
public bool VerifySettings(out List<string> errors)
@@ -99,9 +99,9 @@ public bool VerifySettings(out List<string> errors)
9999
return true;
100100
}
101101

102-
private void LoadValues(RawgMetadataSettings source)
102+
private void RestoreSettings(RawgMetadataSettings source)
103103
{
104-
source.CopyProperties(this, false, null, true);
104+
105105
}
106106
}
107107
}

RAWGMetadata/extension.yaml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
Name: RAWG metadata provider
2-
Author: Spektor
3-
Version: 1.1
1+
Id: Spektor56_Playnite_Metadata_RAWG
2+
Name: RAWG metadata provider
3+
Author: Spektor56
4+
Version: 2.0.0
45
Module: RAWGMetadata.dll
56
Type: MetadataProvider
67
Icon: Resources\rawg.ico

Rawg/Rawg.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ OpenAPI spec version: v1.0
5353
</ItemGroup>
5454
<ItemGroup>
5555
<PackageReference Include="JsonSubTypes">
56-
<Version>1.6.0</Version>
56+
<Version>1.8.0</Version>
5757
</PackageReference>
5858
<PackageReference Include="Newtonsoft.Json">
5959
<Version>12.0.3</Version>

RawgTestApp/RawgTestApp.csproj

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@
9191
</ItemGroup>
9292
<ItemGroup>
9393
<PackageReference Include="PlayniteSDK">
94-
<Version>5.2.0-rc2</Version>
94+
<Version>5.4.0</Version>
9595
</PackageReference>
9696
</ItemGroup>
9797
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />

0 commit comments

Comments
 (0)