Skip to content

Commit 24fb6ec

Browse files
committed
Fix #72, update version and dependencies
1 parent c8143a7 commit 24fb6ec

File tree

6 files changed

+35
-32
lines changed

6 files changed

+35
-32
lines changed

UWPHook.nsi

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,8 +11,8 @@
1111
!define APP_NAME "UWPHook"
1212
!define COMP_NAME "Briano"
1313
!define WEB_SITE "https://briano.dev"
14-
!define VERSION "2.8.00.00"
15-
!define COPYRIGHT "Briano � 2020"
14+
!define VERSION "2.10.00.00"
15+
!define COPYRIGHT "Briano � 2020 2021"
1616
!define DESCRIPTION "The easy way to add UWP and XGP games to Steam"
1717
!define LICENSE_TXT "C:\Users\Brian\Documents\GitHub\UWPHook\README.md"
1818
!define INSTALLER_NAME "C:\Users\Brian\Documents\GitHub\UWPHook\UWPHook.exe"

UWPHook/App.config

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,20 @@
1-
<?xml version="1.0" encoding="utf-8"?>
1+
<?xml version="1.0" encoding="utf-8"?>
22
<configuration>
33
<configSections>
44
<sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
5-
<section name="UWPHook.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false"/>
5+
<section name="UWPHook.Properties.Settings" type="System.Configuration.ClientSettingsSection, System, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" allowExeDefinition="MachineToLocalUser" requirePermission="false" />
66
</sectionGroup>
77
</configSections>
88
<startup>
9-
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2"/>
9+
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6.2" />
1010
</startup>
1111
<userSettings>
1212
<UWPHook.Properties.Settings>
1313
<setting name="ChangeLanguage" serializeAs="String">
1414
<value>False</value>
1515
</setting>
1616
<setting name="TargetLanguage" serializeAs="String">
17-
<value/>
17+
<value />
1818
</setting>
1919
<setting name="Seconds" serializeAs="String">
2020
<value>5</value>
@@ -85,11 +85,11 @@
8585
</UWPHook.Properties.Settings>
8686
</userSettings>
8787
<runtime>
88-
<AppContextSwitchOverrides value="Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false"/>
88+
<AppContextSwitchOverrides value="Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false" />
8989
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
9090
<dependentAssembly>
91-
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral"/>
92-
<bindingRedirect oldVersion="0.0.0.0-12.0.0.0" newVersion="12.0.0.0"/>
91+
<assemblyIdentity name="Newtonsoft.Json" publicKeyToken="30ad4fe6b2a6aeed" culture="neutral" />
92+
<bindingRedirect oldVersion="0.0.0.0-13.0.0.0" newVersion="13.0.0.0" />
9393
</dependentAssembly>
9494
</assemblyBinding>
9595
</runtime>

UWPHook/Properties/AssemblyInfo.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
[assembly: AssemblyConfiguration("")]
1313
[assembly: AssemblyCompany("Briano")]
1414
[assembly: AssemblyProduct("UWPHook")]
15-
[assembly: AssemblyCopyright("Copyright Brian Lima © 2020")]
15+
[assembly: AssemblyCopyright("Copyright Brian Lima © 2020 2021")]
1616
[assembly: AssemblyTrademark("Briano")]
1717
[assembly: AssemblyCulture("")]
1818

@@ -51,6 +51,6 @@
5151
// You can specify all the values or you can default the Build and Revision Numbers
5252
// by using the '*' as shown below:
5353
// [assembly: AssemblyVersion("1.0.*")]
54-
[assembly: AssemblyVersion("2.9.2.0")]
55-
[assembly: AssemblyFileVersion("2.9.2.0")]
54+
[assembly: AssemblyVersion("2.10.0.0")]
55+
[assembly: AssemblyFileVersion("2.10.0.0")]
5656
[assembly: NeutralResourcesLanguage("en")]

UWPHook/SteamGridDb/SteamGridDbApi.cs

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -38,19 +38,22 @@ public async Task<GameResponse[]> SearchGame(string gameName)
3838
GameResponse[] games = null;
3939
HttpResponseMessage response = await httpClient.GetAsync(path);
4040

41-
if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized)
42-
{
43-
System.Windows.MessageBox.Show("Warning: SteamGrid API Key Invalid. Please either remove the API key in settings or enter a valid API key.");
44-
Debug.WriteLine("ERROR RESPONSE: " + response.ToString());
45-
SettingsWindow window = new SettingsWindow();
46-
window.ShowDialog();
47-
}
4841
if (response.IsSuccessStatusCode)
4942
{
50-
5143
var parsedResponse = await response.Content.ReadAsAsync<ResponseWrapper<GameResponse>>();
5244
games = parsedResponse.Data;
5345
}
46+
else if (response.StatusCode == System.Net.HttpStatusCode.Unauthorized)
47+
{
48+
System.Windows.MessageBox.Show("Warning: SteamGrid API Key Invalid. Please generate a new key and add it to settings.");
49+
Debug.WriteLine("ERROR RESPONSE: " + response.ToString());
50+
51+
settings.SteamGridDbApiKey = String.Empty;
52+
settings.Save();
53+
54+
System.Windows.Application.Current.Shutdown();
55+
}
56+
5457

5558
return games;
5659
}

UWPHook/UWPHook.csproj

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -62,14 +62,14 @@
6262
<Reference Include="Crc32.NET, Version=1.0.0.0, Culture=neutral, PublicKeyToken=dc0b95cf99bf4e99, processorArchitecture=MSIL">
6363
<HintPath>..\packages\Crc32.NET.1.2.0\lib\net20\Crc32.NET.dll</HintPath>
6464
</Reference>
65-
<Reference Include="MaterialDesignColors, Version=1.2.7.1979, Culture=neutral, PublicKeyToken=df2a72020bd7962a, processorArchitecture=MSIL">
66-
<HintPath>..\packages\MaterialDesignColors.1.2.7\lib\net45\MaterialDesignColors.dll</HintPath>
65+
<Reference Include="MaterialDesignColors, Version=2.0.1.2556, Culture=neutral, PublicKeyToken=df2a72020bd7962a, processorArchitecture=MSIL">
66+
<HintPath>..\packages\MaterialDesignColors.2.0.1\lib\net452\MaterialDesignColors.dll</HintPath>
6767
</Reference>
68-
<Reference Include="MaterialDesignThemes.Wpf, Version=3.2.0.1979, Culture=neutral, PublicKeyToken=df2a72020bd7962a, processorArchitecture=MSIL">
69-
<HintPath>..\packages\MaterialDesignThemes.3.2.0\lib\net45\MaterialDesignThemes.Wpf.dll</HintPath>
68+
<Reference Include="MaterialDesignThemes.Wpf, Version=4.1.0.2556, Culture=neutral, PublicKeyToken=df2a72020bd7962a, processorArchitecture=MSIL">
69+
<HintPath>..\packages\MaterialDesignThemes.4.1.0\lib\net452\MaterialDesignThemes.Wpf.dll</HintPath>
7070
</Reference>
71-
<Reference Include="Newtonsoft.Json, Version=12.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
72-
<HintPath>..\packages\Newtonsoft.Json.12.0.3\lib\net45\Newtonsoft.Json.dll</HintPath>
71+
<Reference Include="Newtonsoft.Json, Version=13.0.0.0, Culture=neutral, PublicKeyToken=30ad4fe6b2a6aeed, processorArchitecture=MSIL">
72+
<HintPath>..\packages\Newtonsoft.Json.13.0.1\lib\net45\Newtonsoft.Json.dll</HintPath>
7373
</Reference>
7474
<Reference Include="SharpSteam">
7575
<HintPath>..\..\SharpSteam\SharpSteam\bin\Release\SharpSteam.dll</HintPath>
@@ -206,12 +206,12 @@
206206
<Resource Include="Resources\square.png" />
207207
</ItemGroup>
208208
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
209-
<Import Project="..\packages\MaterialDesignThemes.3.2.0\build\MaterialDesignThemes.targets" Condition="Exists('..\packages\MaterialDesignThemes.3.2.0\build\MaterialDesignThemes.targets')" />
209+
<Import Project="..\packages\MaterialDesignThemes.4.1.0\build\MaterialDesignThemes.targets" Condition="Exists('..\packages\MaterialDesignThemes.4.1.0\build\MaterialDesignThemes.targets')" />
210210
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild">
211211
<PropertyGroup>
212212
<ErrorText>This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them. For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is {0}.</ErrorText>
213213
</PropertyGroup>
214-
<Error Condition="!Exists('..\packages\MaterialDesignThemes.3.2.0\build\MaterialDesignThemes.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MaterialDesignThemes.3.2.0\build\MaterialDesignThemes.targets'))" />
214+
<Error Condition="!Exists('..\packages\MaterialDesignThemes.4.1.0\build\MaterialDesignThemes.targets')" Text="$([System.String]::Format('$(ErrorText)', '..\packages\MaterialDesignThemes.4.1.0\build\MaterialDesignThemes.targets'))" />
215215
</Target>
216216
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
217217
Other similar extension points exist, see Microsoft.Common.targets.

UWPHook/packages.config

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
<?xml version="1.0" encoding="utf-8"?>
22
<packages>
33
<package id="Crc32.NET" version="1.2.0" targetFramework="net461" />
4-
<package id="MaterialDesignColors" version="1.2.7" targetFramework="net461" />
5-
<package id="MaterialDesignThemes" version="3.2.0" targetFramework="net461" />
4+
<package id="MaterialDesignColors" version="2.0.1" targetFramework="net462" />
5+
<package id="MaterialDesignThemes" version="4.1.0" targetFramework="net462" />
66
<package id="Microsoft.AspNet.WebApi.Client" version="5.2.7" targetFramework="net461" />
77
<package id="Microsoft.PowerShell.5.ReferenceAssemblies" version="1.1.0" targetFramework="net461" />
8-
<package id="Newtonsoft.Json" version="12.0.3" targetFramework="net461" />
9-
<package id="System.Management.Automation" version="7.1.0" targetFramework="net461" />
8+
<package id="Newtonsoft.Json" version="13.0.1" targetFramework="net462" />
9+
<package id="System.Management.Automation" version="7.1.4" targetFramework="net462" />
1010
</packages>

0 commit comments

Comments
 (0)