From a929d7043368a5aad4eb942064bec5ea8da45ea6 Mon Sep 17 00:00:00 2001 From: Jesse Plamondon-Willard Date: Sat, 5 Nov 2016 01:47:32 -0400 Subject: simplify exit logging --- src/StardewModdingAPI/Program.cs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/StardewModdingAPI/Program.cs') 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(); -- cgit