summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2016-11-24 12:43:28 -0500
committerJesse Plamondon-Willard <github@jplamondonw.com>2016-11-24 12:43:28 -0500
commit00a3c14446b716fc32c63bccf12c79bdbee436d1 (patch)
treec594433b824c4157b599fec3c49a79049bbd31fe
parentc49f6f26bdf16b3dfc0482a4704992b6a4b3d899 (diff)
downloadSMAPI-00a3c14446b716fc32c63bccf12c79bdbee436d1.tar.gz
SMAPI-00a3c14446b716fc32c63bccf12c79bdbee436d1.tar.bz2
SMAPI-00a3c14446b716fc32c63bccf12c79bdbee436d1.zip
fix audio error on startup for some players by deferring update check
-rw-r--r--release-notes.md1
-rw-r--r--src/StardewModdingAPI/Program.cs4
2 files changed, 3 insertions, 2 deletions
diff --git a/release-notes.md b/release-notes.md
index 171ba010..86169cee 100644
--- a/release-notes.md
+++ b/release-notes.md
@@ -7,6 +7,7 @@ For players:
* Fixed compatibility with some older mods.
* Fixed mod errors in most event handlers crashing the game.
* Fixed mod errors in some event handlers preventing other mods from receiving the same event.
+ * Fixed game crashing on startup with an audio error for some players.
For developers:
* Improved logging to show `ReflectionTypeLoadException` details when it's caught by SMAPI.
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 14dbafc9..d31a1d39 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -134,8 +134,8 @@ namespace StardewModdingAPI
return;
}
- // check for update
- Program.CheckForUpdateAsync();
+ // check for update when game loads
+ GameEvents.GameLoaded += (sender, e) => Program.CheckForUpdateAsync();
// launch game
Program.StartGame();