diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-23 19:21:48 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-04-23 19:21:48 -0400 |
commit | a35fe4744782f4895b110dc03cfa7cf850af0500 (patch) | |
tree | f654fae608ba3fd7d6b5f176e02b90bbd24b7c73 | |
parent | 489cacca5ef79a77ca04d12395ff1ec5c7a05c5f (diff) | |
download | SMAPI-a35fe4744782f4895b110dc03cfa7cf850af0500.tar.gz SMAPI-a35fe4744782f4895b110dc03cfa7cf850af0500.tar.bz2 SMAPI-a35fe4744782f4895b110dc03cfa7cf850af0500.zip |
fix monitor.ExitGameImmediately not working correctly
-rw-r--r-- | release-notes.md | 3 | ||||
-rw-r--r-- | src/StardewModdingAPI/Framework/Monitor.cs | 3 |
2 files changed, 5 insertions, 1 deletions
diff --git a/release-notes.md b/release-notes.md index 5c693292..5f2999d1 100644 --- a/release-notes.md +++ b/release-notes.md @@ -15,11 +15,12 @@ See [log](https://github.com/Pathoschild/SMAPI/compare/1.9...1.10). * SMAPI now rewrites many mods for compatibility with game updates, but some mods will need an update. --> -## 1.9.1 +## 1.10 See [log](https://github.com/Pathoschild/SMAPI/compare/1.9...1.9.1). For mod developers: * Fixed mouse-changed event never updating prior mouse position. +* Fixed `monitor.ExitGameImmediately` not working correctly. ## 1.9 See [log](https://github.com/Pathoschild/SMAPI/compare/1.8...1.9). diff --git a/src/StardewModdingAPI/Framework/Monitor.cs b/src/StardewModdingAPI/Framework/Monitor.cs index 70dd94c0..76793bbf 100644 --- a/src/StardewModdingAPI/Framework/Monitor.cs +++ b/src/StardewModdingAPI/Framework/Monitor.cs @@ -71,6 +71,7 @@ namespace StardewModdingAPI.Framework this.Source = source; this.LogFile = logFile; this.ConsoleManager = consoleManager; + this.RequestExit = requestExitDelegate; } /// <summary>Log a message for the player or developer.</summary> @@ -129,6 +130,8 @@ namespace StardewModdingAPI.Framework { if (this.ConsoleManager.SupportsColor) { + if (background.HasValue) + Console.BackgroundColor = background.Value; Console.ForegroundColor = color; Console.WriteLine(message); Console.ResetColor(); |