mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Add GUI console.
This commit is contained in:
@@ -37,6 +37,7 @@ using DiscImageChef.Commands;
|
||||
using DiscImageChef.Console;
|
||||
using DiscImageChef.Gui;
|
||||
using DiscImageChef.Settings;
|
||||
using Eto;
|
||||
using Eto.Forms;
|
||||
using Statistics = DiscImageChef.Core.Statistics;
|
||||
|
||||
@@ -208,9 +209,10 @@ namespace DiscImageChef
|
||||
Commands.Statistics.ShowStats();
|
||||
}).WithParsed<GuiOptions>(opts =>
|
||||
{
|
||||
if (opts.Debug) DicConsole.DebugWriteLineEvent += System.Console.Error.WriteLine;
|
||||
if (opts.Verbose) DicConsole.VerboseWriteLineEvent += System.Console.WriteLine;
|
||||
new Application(Eto.Platform.Detect).Run(new frmMain());
|
||||
if(opts.Debug) DicConsole.DebugWriteLineEvent += System.Console.Error.WriteLine;
|
||||
if(opts.Verbose) DicConsole.VerboseWriteLineEvent += System.Console.WriteLine;
|
||||
|
||||
new Application(Platform.Detect).Run(new frmMain(opts.Debug, opts.Verbose));
|
||||
}).WithNotParsed(errs => Environment.Exit(1));
|
||||
|
||||
Statistics.SaveStats();
|
||||
|
||||
Reference in New Issue
Block a user