summaryrefslogtreecommitdiff
path: root/src/StardewModdingAPI/Program.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <github@jplamondonw.com>2017-04-24 12:36:20 -0400
committerJesse Plamondon-Willard <github@jplamondonw.com>2017-04-24 12:36:20 -0400
commit4e7733ba2dd4912891e6161cca2e2dfc2e94196a (patch)
tree70b86f03c5d3f708bb94290e6c1c8cf533d2375b /src/StardewModdingAPI/Program.cs
parent1de8895642c12e6e36f95c0b960679a8e30d0615 (diff)
downloadSMAPI-4e7733ba2dd4912891e6161cca2e2dfc2e94196a.tar.gz
SMAPI-4e7733ba2dd4912891e6161cca2e2dfc2e94196a.tar.bz2
SMAPI-4e7733ba2dd4912891e6161cca2e2dfc2e94196a.zip
update for SDV 1.2 non-beta release
Diffstat (limited to 'src/StardewModdingAPI/Program.cs')
-rw-r--r--src/StardewModdingAPI/Program.cs8
1 files changed, 0 insertions, 8 deletions
diff --git a/src/StardewModdingAPI/Program.cs b/src/StardewModdingAPI/Program.cs
index 424e1727..db4fbfc0 100644
--- a/src/StardewModdingAPI/Program.cs
+++ b/src/StardewModdingAPI/Program.cs
@@ -16,7 +16,6 @@ using StardewModdingAPI.Framework;
using StardewModdingAPI.Framework.Logging;
using StardewModdingAPI.Framework.Models;
using StardewModdingAPI.Framework.Serialisation;
-using StardewValley;
using Monitor = StardewModdingAPI.Framework.Monitor;
namespace StardewModdingAPI
@@ -141,14 +140,7 @@ namespace StardewModdingAPI
// override game
this.GameInstance = new SGame(this.Monitor);
-#if SDV_1_2
StardewValley.Program.gamePtr = this.GameInstance;
-#else
- {
- Type type = typeof(Game1).Assembly.GetType("StardewValley.Program", true);
- type.GetField("gamePtr").SetValue(null, this.GameInstance);
- }
-#endif
// hook into game events
#if SMAPI_FOR_WINDOWS