diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-09 22:38:10 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-02-09 22:38:10 -0500 |
commit | a13003de8b8601ac693d7af960fab67d285dbd0e (patch) | |
tree | 918a223515cdc8029a310e98096bbb86e57dca63 /src/StardewModdingAPI/Framework | |
parent | 3668b0902d077166c78be882bcea1d38f759fe81 (diff) | |
download | SMAPI-a13003de8b8601ac693d7af960fab67d285dbd0e.tar.gz SMAPI-a13003de8b8601ac693d7af960fab67d285dbd0e.tar.bz2 SMAPI-a13003de8b8601ac693d7af960fab67d285dbd0e.zip |
remove Mono.Cecil.Rocks (#231)
It's not needed since we're not injecting new instructions, and causes the field rewriters to fail unexpectedly.
Diffstat (limited to 'src/StardewModdingAPI/Framework')
-rw-r--r-- | src/StardewModdingAPI/Framework/AssemblyLoader.cs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/src/StardewModdingAPI/Framework/AssemblyLoader.cs b/src/StardewModdingAPI/Framework/AssemblyLoader.cs index d5e8f5ee..0cf6e569 100644 --- a/src/StardewModdingAPI/Framework/AssemblyLoader.cs +++ b/src/StardewModdingAPI/Framework/AssemblyLoader.cs @@ -5,7 +5,6 @@ using System.Linq; using System.Reflection; using Mono.Cecil; using Mono.Cecil.Cil; -using Mono.Cecil.Rocks; using StardewModdingAPI.AssemblyRewriters; namespace StardewModdingAPI.Framework @@ -195,7 +194,6 @@ namespace StardewModdingAPI.Framework continue; // prepare method - method.Body.SimplifyMacros(); ILProcessor cil = method.Body.GetILProcessor(); // rewrite instructions @@ -206,7 +204,6 @@ namespace StardewModdingAPI.Framework } // finalise method - method.Body.OptimizeMacros(); anyRewritten = true; } |