You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DialogResultdialogResult=MessageBox.Show("Because this is the first time you have used Kode, We will see if we can find where Steam is installed. Is this correct?\n"+path,"Is this corrent?",MessageBoxButtons.YesNo);
29
-
if(dialogResult==DialogResult.Yes)
25
+
RegistryKeyOurKey=Registry.CurrentUser;
26
+
OurKey=OurKey.OpenSubKey(@"SOFTWARE\",false);
27
+
RegistryKeykey=OurKey.OpenSubKey("Wine");
28
+
if(key!=null)
30
29
{
31
-
Properties.Settings.Default.KSPLoc=path+@"\steamapps\common\Kerbal Space Program";
30
+
Properties.Settings.Default.KSPLoc="This doesnt matter on Linux";
31
+
Properties.Settings.Default.OS="Linux";
32
32
}
33
33
else
34
34
{
35
-
MessageBox.Show("Whoops. Please visit Settings to fix it :)");
DialogResultdialogResult=MessageBox.Show("Because this is the first time you have used Kode, We will see if we can find where Steam is installed. Is this correct?\n"+path,"Is this corrent?",MessageBoxButtons.YesNo);
42
+
if(dialogResult==DialogResult.Yes)
43
+
{
44
+
Properties.Settings.Default.KSPLoc=path+@"\steamapps\common\Kerbal Space Program";
45
+
}
46
+
else
47
+
{
48
+
MessageBox.Show("Whoops. Please visit Settings to fix it :)");
49
+
}
50
+
Properties.Settings.Default.FirstRun=false;
51
+
Properties.Settings.Default.OS="Windows";
52
+
}
53
+
catch
54
+
{
55
+
MessageBox.Show("Hello! There seems to be a problem finding where Steam is installed. Please go to settings to manually add. Error: 1");
56
+
Properties.Settings.Default.FirstRun=false;
57
+
Properties.Settings.Default.OS="Windows";
58
+
}
36
59
}
37
-
Properties.Settings.Default.FirstRun=false;
38
-
}catch
60
+
}
61
+
else
39
62
{
40
-
MessageBox.Show("Hello! There seems to be a problem finding where Steam is installed. Please go to settings to manually add. Error: 1");
DialogResultdialogResult=MessageBox.Show("Because this is the first time you have used Kode, We will see if we can find where Steam is installed. Is this correct?\n"+path,"Is this corrent?",MessageBoxButtons.YesNo);
70
+
if(dialogResult==DialogResult.Yes)
71
+
{
72
+
Properties.Settings.Default.KSPLoc=path+@"\steamapps\common\Kerbal Space Program";
73
+
}
74
+
else
75
+
{
76
+
MessageBox.Show("Whoops. Please visit Settings to fix it :)");
77
+
}
78
+
Properties.Settings.Default.FirstRun=false;
79
+
Properties.Settings.Default.OS="Windows";
80
+
}
81
+
catch
82
+
{
83
+
MessageBox.Show("Hello! There seems to be a problem finding where Steam is installed. Please go to settings to manually add. Error: 1");
0 commit comments