summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-05 01:47:32 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-05 01:47:32 -0400
commita929d7043368a5aad4eb942064bec5ea8da45ea6 (patch)
tree70d534b19e664efd68c83a9cde29746159bd4d9b
parente092417b9e9093106609a33aba8863c5ec2c5ddd (diff)
downloadSMAPI-a929d7043368a5aad4eb942064bec5ea8da45ea6.tar.gz
SMAPI-a929d7043368a5aad4eb942064bec5ea8da45ea6.tar.bz2
SMAPI-a929d7043368a5aad4eb942064bec5ea8da45ea6.zip
simplify exit logging
-rw-r--r--src/StardewModdingAPI/Program.cs10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 032f1192..dfd8f703 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -74,8 +74,6 @@ namespace StardewModdingAPI
if (String.Compare(Game1.version, Constants.MinimumGameVersion, StringComparison.InvariantCultureIgnoreCase) < 0)
{
Log.Error($"Oops! You're running Stardew Valley {Game1.version}, but the oldest supported version is {Constants.MinimumGameVersion}. Please update your game before using SMAPI. If you're on the Steam beta channel, note that the beta channel may not receive the latest updates.");
- Log.Debug("Shutting down. Press any key to continue...");
- Console.ReadKey();
return;
}
@@ -87,7 +85,6 @@ namespace StardewModdingAPI
if (!File.Exists(Program.GameExecutablePath))
{
Log.Error($"Couldn't find executable: {Program.GameExecutablePath}");
- Log.Debug("Shutting down. Press any key to continue...");
Console.ReadKey();
return;
}
@@ -104,10 +101,6 @@ namespace StardewModdingAPI
Console.ReadKey();
Log.Error($"Critical error: {ex}");
}
-
- // print message when game ends
- Log.Info("Shutting down. Press any key to continue...");
- Console.ReadKey();
}
@@ -204,7 +197,8 @@ namespace StardewModdingAPI
if (consoleInputThread.ThreadState == ThreadState.Running)
consoleInputThread.Abort();
- Log.Debug("Game has ended. Shutting down...");
+ Log.Info("Game has ended. Press any key to continue...");
+ Console.ReadKey();
Thread.Sleep(100);
Environment.Exit(0);
}).Start();