diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-04 01:27:21 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2018-05-04 01:27:21 -0400 |
commit | c8ae8c2b0021401783ac38a80db7e676674f623a (patch) | |
tree | 94577de61106754aef24b276711112acc1152fc3 /src | |
parent | b36566f08d15561557636737c39c8a5d57d74496 (diff) | |
download | SMAPI-c8ae8c2b0021401783ac38a80db7e676674f623a.tar.gz SMAPI-c8ae8c2b0021401783ac38a80db7e676674f623a.tar.bz2 SMAPI-c8ae8c2b0021401783ac38a80db7e676674f623a.zip |
load game synchronously to fix asset loader/editor errors
Diffstat (limited to 'src')
-rw-r--r-- | src/SMAPI/Framework/SGame.cs | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/SGame.cs b/src/SMAPI/Framework/SGame.cs index 767b49c7..78d07fbf 100644 --- a/src/SMAPI/Framework/SGame.cs +++ b/src/SMAPI/Framework/SGame.cs @@ -219,6 +219,20 @@ namespace StardewModdingAPI.Framework inputState.TrueUpdate(); /********* + ** Load game synchronously + *********/ + if (Game1.gameMode == Game1.loadingMode) + { + this.Monitor.Log("Running game loader...", LogLevel.Trace); + while (Game1.gameMode == Game1.loadingMode) + { + base.Update(gameTime); + this.Events.Specialised_UnvalidatedUpdateTick.Raise(); + } + this.Monitor.Log("Game loader OK.", LogLevel.Trace); + } + + /********* ** Skip conditions *********/ // SMAPI exiting, stop processing game updates |