mirror of
https://github.com/ENSL/NaturalLauncher.git
synced 2024-11-21 20:01:12 +00:00
More crash dump report for mé !
This commit is contained in:
parent
0f68abd8b0
commit
bc75172dc6
7 changed files with 38 additions and 14 deletions
|
@ -21,6 +21,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
|
|
@ -21,6 +21,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
|
|
@ -254,12 +254,19 @@ namespace NaturalLauncher
|
|||
|
||||
private void Setting_Click(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (sw == null)
|
||||
try
|
||||
{
|
||||
sw = new Settings();
|
||||
if (sw == null)
|
||||
{
|
||||
sw = new Settings();
|
||||
}
|
||||
sw.SetMainWindowRef(this);
|
||||
sw.Show();
|
||||
}
|
||||
catch(Exception exception)
|
||||
{
|
||||
App.SendReport(exception, "Could Not Open Setting window");
|
||||
}
|
||||
sw.SetMainWindowRef(this);
|
||||
sw.Show();
|
||||
}
|
||||
|
||||
private void Verify_Click(object sender, RoutedEventArgs e)
|
||||
|
|
|
@ -45,6 +45,7 @@
|
|||
<DefineConstants>DEBUG;TRACE</DefineConstants>
|
||||
<ErrorReport>prompt</ErrorReport>
|
||||
<WarningLevel>4</WarningLevel>
|
||||
<UseVSHostingProcess>true</UseVSHostingProcess>
|
||||
</PropertyGroup>
|
||||
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
|
||||
<PlatformTarget>AnyCPU</PlatformTarget>
|
||||
|
|
|
@ -49,5 +49,5 @@ using System.Windows;
|
|||
// 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")]
|
||||
|
|
|
@ -277,7 +277,8 @@ namespace NaturalLauncher
|
|||
|
||||
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 @@ namespace NaturalLauncher
|
|||
|
||||
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)
|
||||
|
|
|
@ -59,12 +59,18 @@ namespace NaturalLauncher
|
|||
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 @@ namespace NaturalLauncher
|
|||
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();
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue