Skip to content

Commit

Permalink
version increment
Browse files Browse the repository at this point in the history
  • Loading branch information
benjibobs committed Aug 6, 2016
1 parent 0a65724 commit e1c25ca
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Steam Shutdown/SShutdown.cs
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ namespace Steam_Shutdown
class SShutdown
{

public static string version = "1.1";
public static string version = "1.2";

static void Main(string[] args)
{
Expand All @@ -31,7 +31,7 @@ static void Main(string[] args)

centerConsoleLine("This detects when Steam has finished downloading your stuff using the registry.");
centerConsoleLine("It will shut down your computer when the download(s) are complete.");
Console.WriteLine(); ;
Console.WriteLine();

Console.ForegroundColor = ConsoleColor.White;

Expand Down Expand Up @@ -108,7 +108,7 @@ static void isDownloading_First(RegistryKey key)
static int getIntervalOrMode(bool modeChosen)
{

Console.Write("> Interval in seconds between checks (or type reboot to reboot instead of shutting down): ");
Console.Write("> Interval in seconds between checks (type 'reboot' here to reboot, or 'sleep' to sleep): ");
Console.ForegroundColor = ConsoleColor.Cyan;

string[] inputArr = Console.ReadLine().Split(':');
Expand All @@ -130,14 +130,17 @@ static int getIntervalOrMode(bool modeChosen)
Console.ForegroundColor = ConsoleColor.White;

return -1;

} else if (input.ToLower() == "sleep" && !modeChosen) {

Console.ForegroundColor = ConsoleColor.Green;
Console.WriteLine();
centerConsoleLine("Sleep mode activated! You will now have to choose an actual interval.");
Console.WriteLine();
Console.ForegroundColor = ConsoleColor.White;

return -2;

}

Console.ForegroundColor = ConsoleColor.Red;
Expand Down

0 comments on commit e1c25ca

Please sign in to comment.