mirror of
https://github.com/claunia/SabreTools.git
synced 2025-12-16 19:14:27 +00:00
[Build] Build.Start() -> Build.PrepareConsole()
This commit is contained in:
@@ -16,7 +16,7 @@ namespace SabreTools.Library.Data
|
|||||||
/// Readies the console and outputs the header
|
/// Readies the console and outputs the header
|
||||||
/// </summary>
|
/// </summary>
|
||||||
/// <param name="name">The name to be displayed as the program</param>B
|
/// <param name="name">The name to be displayed as the program</param>B
|
||||||
public static void Start(string name)
|
public static void PrepareConsole(string name)
|
||||||
{
|
{
|
||||||
// Dynamically create the header string, adapted from http://stackoverflow.com/questions/8200661/how-to-align-string-in-fixed-length-string
|
// Dynamically create the header string, adapted from http://stackoverflow.com/questions/8200661/how-to-align-string-in-fixed-length-string
|
||||||
int width = Console.WindowWidth - 3;
|
int width = Console.WindowWidth - 3;
|
||||||
|
|||||||
@@ -45,7 +45,7 @@ namespace SabreTools
|
|||||||
if (!Console.IsOutputRedirected && scriptLocation == -1)
|
if (!Console.IsOutputRedirected && scriptLocation == -1)
|
||||||
{
|
{
|
||||||
Console.Clear();
|
Console.Clear();
|
||||||
Build.Start("SabreTools");
|
Build.PrepareConsole("SabreTools");
|
||||||
}
|
}
|
||||||
|
|
||||||
// Now we remove the script tag because it messes things up
|
// Now we remove the script tag because it messes things up
|
||||||
|
|||||||
Reference in New Issue
Block a user