remove debug feature

This commit is contained in:
fyr77 2020-07-14 17:27:06 +02:00
parent f762e91cb4
commit 20020b91ee

View file

@ -21,7 +21,8 @@ namespace EnvyUpdate
private readonly string exeloc = System.Reflection.Assembly.GetEntryAssembly().Location; private readonly string exeloc = System.Reflection.Assembly.GetEntryAssembly().Location;
private readonly string exepath = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\"; private readonly string exepath = Path.GetDirectoryName(System.Reflection.Assembly.GetEntryAssembly().Location) + "\\";
private readonly string startmenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu); private readonly string startmenu = Environment.GetFolderPath(Environment.SpecialFolder.StartMenu);
private readonly string version = "1.3"; private readonly string version = "1.4";
readonly string over = Util.GetNewVer();
public MainWindow() public MainWindow()
{ {
@ -38,7 +39,7 @@ namespace EnvyUpdate
{ {
Directory.CreateDirectory(appdata); Directory.CreateDirectory(appdata);
} }
MessageBox.Show(over);
// Check if application is in Autorun mode and update // Check if application is in Autorun mode and update
if (exepath == appdata) if (exepath == appdata)
{ {
@ -54,15 +55,13 @@ namespace EnvyUpdate
//Silently fail. //Silently fail.
} }
} }
try /*
{
if (Environment.GetCommandLineArgs()[1] == "--ignore-gpu") if (Environment.GetCommandLineArgs()[1] == "--ignore-gpu")
{ {
MessageBox.Show("Skipping GPU check!"); MessageBox.Show("Skipping GPU check!");
textblockGPU.Text = "Check skipped."; textblockGPU.Text = "Check skipped.";
} }
else */
{
if (Util.GetLocDriv() != null) if (Util.GetLocDriv() != null)
{ {
localDriv = Util.GetLocDriv(); localDriv = Util.GetLocDriv();
@ -73,9 +72,6 @@ namespace EnvyUpdate
MessageBox.Show("No NVIDIA GPU found. Application will exit."); MessageBox.Show("No NVIDIA GPU found. Application will exit.");
Environment.Exit(255); Environment.Exit(255);
} }
}
}
catch (IndexOutOfRangeException) { }
if (File.Exists(appdata + "nvidia-update.txt")) if (File.Exists(appdata + "nvidia-update.txt"))
{ {