2019-10-03 04:35:29 +00:00
|
|
|
|
using System;
|
|
|
|
|
using System.Windows;
|
|
|
|
|
using Wabbajack.Common;
|
2021-03-11 15:00:26 +00:00
|
|
|
|
using Wabbajack.Lib;
|
2019-07-22 22:17:46 +00:00
|
|
|
|
|
|
|
|
|
namespace Wabbajack
|
|
|
|
|
{
|
|
|
|
|
/// <summary>
|
2020-01-25 23:25:51 +00:00
|
|
|
|
/// Interaction logic for App.xaml
|
2019-07-22 22:17:46 +00:00
|
|
|
|
/// </summary>
|
|
|
|
|
public partial class App : Application
|
|
|
|
|
{
|
2019-10-03 04:35:29 +00:00
|
|
|
|
public App()
|
|
|
|
|
{
|
2021-03-19 05:04:27 +00:00
|
|
|
|
Consts.LogsFolder = LauncherUpdater.CommonFolder.Value.Combine("logs");
|
2021-04-01 20:52:23 +00:00
|
|
|
|
Consts.LogsFolder.CreateDirectory();
|
2021-03-19 05:04:27 +00:00
|
|
|
|
|
2020-09-22 21:52:24 +00:00
|
|
|
|
LoggingSettings.LogToFile = true;
|
2021-03-19 05:04:27 +00:00
|
|
|
|
Utils.InitalizeLogging().Wait();
|
2020-09-22 21:52:24 +00:00
|
|
|
|
|
2020-01-31 22:56:26 +00:00
|
|
|
|
CLIOld.ParseOptions(Environment.GetCommandLineArgs());
|
2020-01-25 23:25:51 +00:00
|
|
|
|
if (CLIArguments.Help)
|
2020-01-31 22:56:26 +00:00
|
|
|
|
CLIOld.DisplayHelpText();
|
2019-10-06 21:58:36 +00:00
|
|
|
|
}
|
2019-07-22 22:17:46 +00:00
|
|
|
|
}
|
2019-11-24 08:12:28 +00:00
|
|
|
|
}
|