mirror of
https://github.com/aaru-dps/Aaru.git
synced 2025-12-16 19:24:25 +00:00
Reformatted.
This commit is contained in:
@@ -43,12 +43,12 @@ namespace DiscImageChef.Commands
|
||||
{
|
||||
public static class Configure
|
||||
{
|
||||
public static void doConfigure ()
|
||||
public static void doConfigure()
|
||||
{
|
||||
ConsoleKeyInfo pressedKey = new ConsoleKeyInfo();
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to save device reports globally? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -58,19 +58,19 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.SaveReportsGlobally = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to save stats about your DiscImageChef usage? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
DicConsole.WriteLine();
|
||||
}
|
||||
|
||||
if (pressedKey.Key == ConsoleKey.Y)
|
||||
if(pressedKey.Key == ConsoleKey.Y)
|
||||
{
|
||||
Settings.Settings.Current.Stats = new StatsSettings();
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to share your stats anonymously? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -79,7 +79,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.ShareStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about benchmarks? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -88,7 +88,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.BenchmarkStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about command usage? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -97,7 +97,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.CommandStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about found devices? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -106,7 +106,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.DeviceStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about found filesystems? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -115,7 +115,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.FilesystemStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about found media image formats? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -124,7 +124,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.MediaImageStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about scanned media? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -133,7 +133,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.MediaScanStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about found partitioning schemes? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -142,7 +142,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.PartitionStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about media types? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
@@ -151,7 +151,7 @@ namespace DiscImageChef.Commands
|
||||
Settings.Settings.Current.Stats.MediaStats = pressedKey.Key == ConsoleKey.Y;
|
||||
|
||||
pressedKey = new ConsoleKeyInfo();
|
||||
while (pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
while(pressedKey.Key != ConsoleKey.Y && pressedKey.Key != ConsoleKey.N)
|
||||
{
|
||||
DicConsole.Write("Do you want to gather statistics about media image verifications? (Y/N): ");
|
||||
pressedKey = System.Console.ReadKey();
|
||||
|
||||
Reference in New Issue
Block a user