Skip to content
This repository has been archived by the owner on Mar 17, 2018. It is now read-only.

Commit

Permalink
Hotfix for various errors
Browse files Browse the repository at this point in the history
  • Loading branch information
ikkentim committed May 5, 2016
1 parent 1270167 commit 1e5701f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 7 deletions.
10 changes: 5 additions & 5 deletions src/ParkitectNexus.Data/Game/Windows/SteamPathSeeker.cs
Original file line number Diff line number Diff line change
Expand Up @@ -21,16 +21,16 @@ namespace ParkitectNexus.Data.Game.Windows
{
internal class SteamPathSeeker
{
private RegistryKey SteamKey => Registry.CurrentUser.OpenSubKey("Software\\Valve\\Steam")
?? Registry.CurrentUser.OpenSubKey("Software\\Wow6432Node\\Valve\\Steam")
?? Registry.LocalMachine.OpenSubKey("Software\\Valve\\Steam")
?? Registry.LocalMachine.OpenSubKey("Software\\Wow6432Node\\Valve\\Steam");
private RegistryKey SteamKey => Registry.CurrentUser?.OpenSubKey("Software\\Valve\\Steam")
?? Registry.CurrentUser?.OpenSubKey("Software\\Wow6432Node\\Valve\\Steam")
?? Registry.LocalMachine?.OpenSubKey("Software\\Valve\\Steam")
?? Registry.LocalMachine?.OpenSubKey("Software\\Wow6432Node\\Valve\\Steam");

public bool IsSteamVersionInstalled
{
get
{
var key = SteamKey.OpenSubKey($@"Apps\{Steam.AppId}")?.GetValue("Installed", null);
var key = SteamKey?.OpenSubKey($@"Apps\{Steam.AppId}")?.GetValue("Installed", null);
return key != null && (int) key == 1;
}
}
Expand Down
4 changes: 2 additions & 2 deletions src/ParkitectNexus.Data/Web/Website.cs
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ namespace ParkitectNexus.Data.Web
public class Website : IWebsite
{
#if DEBUG
private const string WebsiteUrl = "https://{0}staging.parkitectnexus.com/{1}";
private const string WebsiteUrl = "http://{0}staging.parkitectnexus.com/{1}";
#else
private const string WebsiteUrl = "https://{0}parkitectnexus.com/{1}";
private const string WebsiteUrl = "http://{0}parkitectnexus.com/{1}";
#endif

/// <summary>
Expand Down

0 comments on commit 1e5701f

Please sign in to comment.