first commit

This commit is contained in:
Beyhan Oğur
2026-09-03 04:45:36 +03:00
commit d5f52cc3d3
1038 changed files with 169579 additions and 0 deletions
+52
View File
@@ -0,0 +1,52 @@
using System;
using System.Diagnostics;
using System.IO;
using System.Threading;
using System.Windows;
using CommandLine;
using Exceptionless;
using IOPath = System.IO.Path;
namespace ClassicAssist.Updater
{
/// <summary>
/// Interaction logic for App.xaml
/// </summary>
public partial class App : Application
{
public static Options CurrentOptions { get; set; }
private void Application_Startup( object sender, StartupEventArgs e )
{
ExceptionlessClient.Default.Configuration.DefaultData.Add( "Locale",
Thread.CurrentThread.CurrentUICulture.Name );
ExceptionlessClient.Default.Startup( "T8v0i7nL90cVRc4sr2pgo5hviThMPRF3OtQ0bK60" );
Parser.Default.ParseArguments<Options>( e.Args ).WithParsed( o => CurrentOptions = o );
if ( string.IsNullOrEmpty( CurrentOptions.Path ) )
{
CurrentOptions.Path = Environment.CurrentDirectory;
}
if ( CurrentOptions.CurrentVersion != null )
{
return;
}
if ( File.Exists( IOPath.Combine( CurrentOptions.Path, "ClassicAssist.dll" ) ) )
{
if ( Version.TryParse(
FileVersionInfo.GetVersionInfo( IOPath.Combine( CurrentOptions.Path, "ClassicAssist.dll" ) )
.ProductVersion, out Version version ) )
{
CurrentOptions.CurrentVersion = version;
}
}
else
{
CurrentOptions.CurrentVersion = new Version( 0, 0, 0, 0 );
}
}
}
}