[Build] Extract code

This commit is contained in:
Matt Nadareski
2016-09-12 16:14:23 -07:00
parent 55b74d0b80
commit 001f0a6fc3

View File

@@ -349,18 +349,13 @@ namespace SabreTools.Helper
i++; i++;
// If we're not being redirected and we reached the size of the screen, pause // If we're not being redirected and we reached the size of the screen, pause
if (!Console.IsOutputRedirected && i == Console.WindowHeight - 2) if (i == Console.WindowHeight - 2)
{ {
i = 0; i = 0;
Console.WriteLine("Press enter to continue..."); Pause();
Console.ReadLine();
} }
} }
if (!Console.IsOutputRedirected) Pause();
{
Console.WriteLine("Press enter to continue...");
Console.ReadLine();
}
} }
public static void Credits() public static void Credits()
@@ -374,6 +369,11 @@ Additional code: emuLOAD, @tractivo
Testing: emuLOAD, @tractivo, Kludge, Obiwantje, edc Testing: emuLOAD, @tractivo, Kludge, Obiwantje, edc
Suggestions: edc, AcidX, Amiga12, EliUmniCk Suggestions: edc, AcidX, Amiga12, EliUmniCk
Based on work by: The Wizard of DATz"); Based on work by: The Wizard of DATz");
Pause();
}
private static void Pause()
{
if (!Console.IsOutputRedirected) if (!Console.IsOutputRedirected)
{ {
Console.WriteLine("Press enter to continue..."); Console.WriteLine("Press enter to continue...");