diff --git a/CleanAndLaunch/CleanAndLaunch.csproj b/CleanAndLaunch/CleanAndLaunch.csproj
index af73f52..0f2fba4 100644
--- a/CleanAndLaunch/CleanAndLaunch.csproj
+++ b/CleanAndLaunch/CleanAndLaunch.csproj
@@ -21,6 +21,7 @@
DEBUG;TRACE
prompt
4
+ true
AnyCPU
diff --git a/ManifestBuilder/ManifestBuilder.csproj b/ManifestBuilder/ManifestBuilder.csproj
index 6711389..7824f8a 100644
--- a/ManifestBuilder/ManifestBuilder.csproj
+++ b/ManifestBuilder/ManifestBuilder.csproj
@@ -21,6 +21,7 @@
DEBUG;TRACE
prompt
4
+ true
AnyCPU
diff --git a/NaturalLauncher/MainWindow.xaml.cs b/NaturalLauncher/MainWindow.xaml.cs
index f44f858..d98434d 100644
--- a/NaturalLauncher/MainWindow.xaml.cs
+++ b/NaturalLauncher/MainWindow.xaml.cs
@@ -254,12 +254,19 @@ private void Website_Click(object sender, RoutedEventArgs e)
private void Setting_Click(object sender, RoutedEventArgs e)
{
- if (sw == null)
+ try
+ {
+ if (sw == null)
+ {
+ sw = new Settings();
+ }
+ sw.SetMainWindowRef(this);
+ sw.Show();
+ }
+ catch(Exception exception)
{
- sw = new Settings();
+ App.SendReport(exception, "Could Not Open Setting window");
}
- sw.SetMainWindowRef(this);
- sw.Show();
}
private void Verify_Click(object sender, RoutedEventArgs e)
diff --git a/NaturalLauncher/NaturalLauncher.csproj b/NaturalLauncher/NaturalLauncher.csproj
index 3882a5e..797774a 100644
--- a/NaturalLauncher/NaturalLauncher.csproj
+++ b/NaturalLauncher/NaturalLauncher.csproj
@@ -45,6 +45,7 @@
DEBUG;TRACE
prompt
4
+ true
AnyCPU
diff --git a/NaturalLauncher/Properties/AssemblyInfo.cs b/NaturalLauncher/Properties/AssemblyInfo.cs
index fc3433b..4d78a15 100644
--- a/NaturalLauncher/Properties/AssemblyInfo.cs
+++ b/NaturalLauncher/Properties/AssemblyInfo.cs
@@ -49,5 +49,5 @@
// Vous pouvez spécifier toutes les valeurs ou indiquer les numéros de build et de révision par défaut
// en utilisant '*', comme indiqué ci-dessous :
// [assembly: AssemblyVersion("1.0.*")]
-[assembly: AssemblyVersion("1.0.0.0")]
-[assembly: AssemblyFileVersion("1.0.0.0")]
+[assembly: AssemblyVersion("1.0.1.0")]
+[assembly: AssemblyFileVersion("1.0.1.0")]
diff --git a/NaturalLauncher/SelfUpdater.cs b/NaturalLauncher/SelfUpdater.cs
index b30ed8f..5fd8b84 100644
--- a/NaturalLauncher/SelfUpdater.cs
+++ b/NaturalLauncher/SelfUpdater.cs
@@ -277,7 +277,8 @@ public static bool Verify(byte[] data, string PublicKeyPath, string SignatureHex
if (publicKey == null)
{
- throw new ArgumentNullException("publicKey");
+ MessageBoxResult AlertBox = MessageBox.Show("Your launcher is missing the public crypto key", "Error!", MessageBoxButton.OK, MessageBoxImage.Error);
+ throw new ArgumentNullException("MissingKeyFile");
}
if (signature == null)
@@ -293,7 +294,10 @@ public static bool Verify(byte[] data, string PublicKeyPath, string SignatureHex
public static X509Certificate2 LoadPublicKey(string PublicKeyPath)
{
- return new X509Certificate2(PublicKeyPath);
+ if(File.Exists(PublicKeyPath))
+ return new X509Certificate2(PublicKeyPath);
+ else
+ throw new ArgumentNullException("MissingKeyFile");
}
public static byte[] StringToByte(string str)
diff --git a/NaturalLauncher/Settings.xaml.cs b/NaturalLauncher/Settings.xaml.cs
index 76a02cd..a69bdfb 100644
--- a/NaturalLauncher/Settings.xaml.cs
+++ b/NaturalLauncher/Settings.xaml.cs
@@ -59,12 +59,18 @@ public Settings()
break;
}
- XmlBuilder.ReadConfigXml(out string uno, out bool dos, out string discordStatus, out bool keepAlive);
- Launcher.keepLauncherAlive = keepAlive;
- DiscordTxtbox.Text = discordStatus;
- KeepAliveChecker.IsChecked = keepAlive;
-
- windowfullyopen = true;
+ try
+ {
+ XmlBuilder.ReadConfigXml(out string uno, out bool dos, out string discordStatus, out bool keepAlive);
+ Launcher.keepLauncherAlive = keepAlive;
+ DiscordTxtbox.Text = discordStatus;
+ KeepAliveChecker.IsChecked = keepAlive;
+ windowfullyopen = true;
+ }
+ catch(Exception exception)
+ {
+ App.SendReport(exception, "Could Not Read ConfigXml");
+ }
}
@@ -200,6 +206,10 @@ private void BrowseHLFolderButton_Click(object sender, RoutedEventArgs e)
Launcher.HLFolder = folderPath;
Launcher.NSFolder = folderPath + System.IO.Path.DirectorySeparatorChar + "ns";
}
+ else
+ {
+ // throw new FileNotFoundException("Could not find HL folder"); // no need to crash the launcher for this
+ }
MainWindowReference.CallUpdateGame();
}