Skip to content

Commit

Permalink
The program will exit itself, yay!
Browse files Browse the repository at this point in the history
  • Loading branch information
Epicminer256 committed Jun 24, 2024
1 parent a1162c2 commit 363af19
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,13 @@ public MainMenuForm()
MessageBox.Show("The file \"iCuePath\" in your config points to a invalid path. Delete that file and start this program again to fix it.");
this.Close();
Application.Exit();
System.Environment.Exit(1);
}
} else {
if(File.Exists("C:\\Program Files\\Corsair\\Corsair iCUE5 Software\\iCUE.exe")){
iCue_Path = "C:\\Program Files\\Corsair\\CORSAIR iCUE5 Software\\";
}
if(File.Exists("C:\\Program Files (x86)\\Corsair\\CORSAIR iCUE5 Software\\iCUE.exe")){
if(File.Exists("C:\\Program Files (x86)\\Corsair\\CORSAIR iCUE5 Software\\")){
iCue_Path = "C:\\Program Files (x86)\\Corsair\\CORSAIR iCUE5 Software\\";
}
while(iCue_Path == ""){
Expand Down

0 comments on commit 363af19

Please sign in to comment.