|
|
|
@ -100,8 +100,12 @@ public static class LauncherUpdater
|
|
|
|
// Check settings if autoUpdateLauncher is set to true
|
|
|
|
// Check settings if autoUpdateLauncher is set to true
|
|
|
|
bool autoUpdate = Boolean.Parse(MainForm.ReadFromConfig("AutoUpdateLauncher"));
|
|
|
|
bool autoUpdate = Boolean.Parse(MainForm.ReadFromConfig("AutoUpdateLauncher"));
|
|
|
|
|
|
|
|
|
|
|
|
if (autoUpdate)
|
|
|
|
if (!autoUpdate)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
|
|
|
|
log.Info("AutoUpdate Launcher set to false. Exiting update check.");
|
|
|
|
|
|
|
|
return;
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
log.Info("AutoUpdate Launcher set to true!");
|
|
|
|
log.Info("AutoUpdate Launcher set to true!");
|
|
|
|
|
|
|
|
|
|
|
|
// This is supposed to fix the updater throwing an exception on windows 7 and earlier(?)
|
|
|
|
// This is supposed to fix the updater throwing an exception on windows 7 and earlier(?)
|
|
|
|
@ -238,9 +242,4 @@ public static class LauncherUpdater
|
|
|
|
Process.Start(updatePath + "/" + CrossPlatformOperations.LauncherName);
|
|
|
|
Process.Start(updatePath + "/" + CrossPlatformOperations.LauncherName);
|
|
|
|
Environment.Exit(0);
|
|
|
|
Environment.Exit(0);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
else
|
|
|
|
|
|
|
|
{
|
|
|
|
|
|
|
|
log.Info("AutoUpdate Launcher set to false. Exiting update check.");
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|