summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--docs/release-notes.md3
-rw-r--r--src/SMAPI/Framework/Logging/LogManager.cs14
-rw-r--r--src/SMAPI/Framework/SCore.cs1
3 files changed, 10 insertions, 8 deletions
diff --git a/docs/release-notes.md b/docs/release-notes.md
index 24f9bbdd..d02b96bc 100644
--- a/docs/release-notes.md
+++ b/docs/release-notes.md
@@ -8,6 +8,9 @@
-->
## Upcoming release
+* For players:
+ * Improved performance of exit handler (thanks to millerscout!).
+
* For modders:
* Fixed asset propagation for `Data\MoviesReactions`.
diff --git a/src/SMAPI/Framework/Logging/LogManager.cs b/src/SMAPI/Framework/Logging/LogManager.cs
index d83a5c0b..094dd749 100644
--- a/src/SMAPI/Framework/Logging/LogManager.cs
+++ b/src/SMAPI/Framework/Logging/LogManager.cs
@@ -138,15 +138,15 @@ namespace StardewModdingAPI.Framework.Logging
Thread inputThread = new Thread(() =>
{
while (true)
- {
+ {
// get input
- string input = Console.ReadLine();
- if (string.IsNullOrWhiteSpace(input))
- continue;
+ string input = Console.ReadLine();
+ if (string.IsNullOrWhiteSpace(input))
+ continue;
- // handle command
- this.Monitor.LogUserInput(input);
- handleInput(input);
+ // handle command
+ this.Monitor.LogUserInput(input);
+ handleInput(input);
}
});
inputThread.Start();
diff --git a/src/SMAPI/Framework/SCore.cs b/src/SMAPI/Framework/SCore.cs
index e2a9463b..776e32da 100644
--- a/src/SMAPI/Framework/SCore.cs
+++ b/src/SMAPI/Framework/SCore.cs
@@ -288,7 +288,6 @@ namespace StardewModdingAPI.Framework
}
});
-
// set window titles
this.SetWindowTitles(
game: $"Stardew Valley {Constants.GameVersion} - running SMAPI {Constants.ApiVersion}",