summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Framework/SGame.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-04-23 21:51:49 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-04-23 21:51:49 -0400
commit86ef70feece302f21041204b3baa31d757730acc (patch)
tree2607f445d592667f2894cc79765b980905b450f6 /src/StardewModdingAPI/Framework/SGame.cs
parent5f595d8a464174bf8ec6940476cf6e05014e17b4 (diff)
downloadSMAPI-86ef70feece302f21041204b3baa31d757730acc.tar.gz
SMAPI-86ef70feece302f21041204b3baa31d757730acc.tar.bz2
SMAPI-86ef70feece302f21041204b3baa31d757730acc.zip
revamp startup process (#265)
This revamps SMAPI's startup process to simplify mod development by ensuring that core components are ready by the time mods are loaded (which is also needed for the upcoming content API), and eliminate or reduce SEHExceptions some players experience.
Diffstat (limited to 'src/StardewModdingAPI/Framework/SGame.cs')
-rw-r--r--src/StardewModdingAPI/Framework/SGame.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/StardewModdingAPI/Framework/SGame.cs b/src/StardewModdingAPI/Framework/SGame.cs
index 99b9f991..39cc5cde 100644
--- a/src/StardewModdingAPI/Framework/SGame.cs
+++ b/src/StardewModdingAPI/Framework/SGame.cs
@@ -196,6 +196,8 @@ namespace StardewModdingAPI.Framework
this.Monitor = monitor;
this.FirstUpdate = true;
SGame.Instance = this;
+
+ Game1.graphics.GraphicsProfile = GraphicsProfile.HiDef; // required by Stardew Valley
}
/****