Skip to content
This repository was archived by the owner on Aug 14, 2024. It is now read-only.

Commit 9ba6e81

Browse files
author
Flash
committed
Clean up console a bit
1 parent 842e1e8 commit 9ba6e81

File tree

2 files changed

+22
-11
lines changed

2 files changed

+22
-11
lines changed

AutoUpdater/Program.cs

Lines changed: 12 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,8 @@ static void Main()
1414
{
1515
Console.Title = "Auto Updater";
1616
Console.ForegroundColor = ConsoleColor.DarkCyan;
17-
18-
Console.WriteLine("""
19-
\ | | | | |
20-
_ \ | | _| _ \ | | _ \ _` | _` | _| -_) _|
21-
_/ _\ \_,_| \__| \___/ \__/ .__/ \__,_| \__,_| \__| \___| _|
22-
_|
23-
""");
17+
18+
Misc.DrawASCII();
2419

2520

2621
if (!ConfigParser.IsConfigValid())
@@ -41,7 +36,7 @@ static void Main()
4136
Console.WriteLine("Download latest version? (Y/n)");
4237
string? input = Console.ReadLine();
4338

44-
if (input!.ToLower().Contains("n"))
39+
if (!input!.ToLower().Contains("n"))
4540
{
4641

4742
// Try to print out the version
@@ -70,13 +65,19 @@ static void Main()
7065

7166
ConfigParser.SaveConfig();
7267
}
73-
74-
68+
69+
Console.Clear();
70+
Misc.DrawASCII();
71+
7572
PublicSymbolsDict = LLVM.DumpPublics();
7673
Sections = LLVM.DumpSections();
77-
74+
7875
Dictionary<string, int> offsets = Update.UpdateFromConfig(Config);
7976

77+
78+
Console.Clear();
79+
Misc.DrawASCII();
80+
8081
Console.WriteLine("==========================================");
8182

8283
Console.WriteLine("Offsets:");

AutoUpdater/Utility/Misc.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -229,4 +229,14 @@ public static string GetVersion()
229229
{
230230
return "Unknown";
231231
}
232+
233+
public static void DrawASCII()
234+
{
235+
Console.WriteLine("""
236+
\ | | | | |
237+
_ \ | | _| _ \ | | _ \ _` | _` | _| -_) _|
238+
_/ _\ \_,_| \__| \___/ \__/ .__/ \__,_| \__,_| \__| \___| _|
239+
_|
240+
""");
241+
}
232242
}

0 commit comments

Comments
 (0)