Skip to content

Commit

Permalink
registry key should now be correct for 32 and 64bit OS
Browse files Browse the repository at this point in the history
  • Loading branch information
epix37 committed Jun 25, 2014
1 parent 78305b6 commit 25f4e18
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 5 deletions.
2 changes: 0 additions & 2 deletions Hearthstone Deck Tracker/Card.cs
Original file line number Diff line number Diff line change
Expand Up @@ -10,13 +10,11 @@ namespace Hearthstone_Deck_Tracker
{
public class Card : ICloneable
{
//cards loaded from playerdeck?
public Card()
{
Count = 1;
}

//cards loaded from db
public Card(string id, string playerClass, string rarity, string type, string name, int cost, string localizedName,
int inHandCount, int count)
{
Expand Down
4 changes: 1 addition & 3 deletions Hearthstone Deck Tracker/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ public MainWindow()
//find hs directory
if (string.IsNullOrEmpty(_config.HearthstoneDirectory) || !File.Exists(_config.HearthstoneDirectory + @"\Hearthstone.exe"))
{
using (var hsDirKey =
Registry.LocalMachine.OpenSubKey(
@"SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Hearthstone"))
using (var hsDirKey = Registry.LocalMachine.OpenSubKey(@"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Hearthstone"))
{
if (hsDirKey != null)
{
Expand Down

0 comments on commit 25f4e18

Please sign in to comment.