Skip to content
This repository has been archived by the owner on Jan 2, 2025. It is now read-only.

Commit

Permalink
Updated plugin to support the newest version of Playnite
Browse files Browse the repository at this point in the history
  • Loading branch information
xDAN7 committed Dec 20, 2020
1 parent 16bae41 commit 200049e
Show file tree
Hide file tree
Showing 6 changed files with 23 additions and 10 deletions.
3 changes: 2 additions & 1 deletion media/extension.yaml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
Id: Fullscreen_DeSmuME
Name: Fullscreen DeSmuME
Author: Daniel M.
Version: 1.0
Version: 1.1
Module: FullscreenDeSmuME.dll
Type: GenericPlugin
Icon: Resources\desmumeicon.png
11 changes: 6 additions & 5 deletions source/FullscreenDeSmuME/FullscreenDeSmuME.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
<Reference Include="Newtonsoft.Json, Version=10.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
<HintPath>..\packages\Newtonsoft.Json.10.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
</Reference>
<Reference Include="Playnite.SDK, Version=5.1.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\PlayniteSDK.5.1.0\lib\net462\Playnite.SDK.dll</HintPath>
<Reference Include="Playnite.SDK, Version=5.5.0.0, Culture=neutral, processorArchitecture=MSIL">
<HintPath>..\packages\PlayniteSDK.5.5.0\lib\net462\Playnite.SDK.dll</HintPath>
</Reference>
<Reference Include="PresentationCore" />
<Reference Include="PresentationFramework" />
Expand All @@ -61,14 +61,15 @@
</Compile>
<Compile Include="Properties\AssemblyInfo.cs" />
</ItemGroup>
<ItemGroup>
<None Include="packages.config" />
</ItemGroup>
<ItemGroup>
<Page Include="FullscreenDeSmuMESettingsView.xaml">
<SubType>Designer</SubType>
<Generator>MSBuild:Compile</Generator>
</Page>
</ItemGroup>
<ItemGroup>
<None Include="app.config" />
<None Include="packages.config" />
</ItemGroup>
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
</Project>
1 change: 0 additions & 1 deletion source/FullscreenDeSmuME/FullscreenDeSmuMEPlugin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ public class FullscreenDeSmuMEPlugin : Plugin
static extern bool SetForegroundWindow(IntPtr hWnd);

private FullscreenDeSmuMESettings settings { get; }
private ILogger logger { get; } = LogManager.GetLogger();

public override Guid Id { get; } = Guid.Parse("90557cf8-d588-43e3-a57f-c8df5fdbd12f");

Expand Down
5 changes: 3 additions & 2 deletions source/FullscreenDeSmuME/FullscreenDeSmuMESettings.cs
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,9 @@ namespace FullscreenDeSmuME
{
public class FullscreenDeSmuMESettings : ISettings
{
private static ILogger logger = LogManager.GetLogger();
[JsonIgnore]
private FullscreenDeSmuMEPlugin plugin;
[JsonIgnore]
private IPlayniteAPI api;

public FullscreenDeSmuMESettings()
Expand All @@ -40,6 +41,7 @@ public FullscreenDeSmuMESettings(FullscreenDeSmuMEPlugin plugin, IPlayniteAPI ap
public Emulator SelectedEmulator { get; set; }
[JsonIgnore]
public string TimeoutText { get; set; }

public int Timeout { get; set; } = 1000;
public Guid SelectedEmulatorGuid { get; set; }

Expand All @@ -63,7 +65,6 @@ public void EndEdit()

public bool VerifySettings(out List<string> errors)
{

errors = new List<string>();

try
Expand Down
11 changes: 11 additions & 0 deletions source/FullscreenDeSmuME/app.config
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<runtime>
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0" />
</dependentAssembly>
</assemblyBinding>
</runtime>
</configuration>
2 changes: 1 addition & 1 deletion source/FullscreenDeSmuME/packages.config
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="utf-8"?>
<packages>
<package id="Newtonsoft.Json" version="10.0.1" targetFramework="net462" />
<package id="PlayniteSDK" version="5.1.0" targetFramework="net462" />
<package id="PlayniteSDK" version="5.5.0" targetFramework="net462" />
</packages>

0 comments on commit 200049e

Please sign in to comment.