diff options
author | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-19 23:02:00 -0400 |
---|---|---|
committer | Jesse Plamondon-Willard <github@jplamondonw.com> | 2017-09-19 23:02:00 -0400 |
commit | fd10cf958cb68a41e1aa7ac4d7d2371205be0c75 (patch) | |
tree | 47f4b2e62026c082caff2a8de6af9a8e2dfdb657 /src/StardewModdingAPI/Framework/ModLoading | |
parent | c513bb011c858e59abbd77f75080f4a1d8b712f9 (diff) | |
download | SMAPI-fd10cf958cb68a41e1aa7ac4d7d2371205be0c75.tar.gz SMAPI-fd10cf958cb68a41e1aa7ac4d7d2371205be0c75.tar.bz2 SMAPI-fd10cf958cb68a41e1aa7ac4d7d2371205be0c75.zip |
move rewriters into metadata class (#347)
Diffstat (limited to 'src/StardewModdingAPI/Framework/ModLoading')
-rw-r--r-- | src/StardewModdingAPI/Framework/ModLoading/AssemblyLoader.cs | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/StardewModdingAPI/Framework/ModLoading/AssemblyLoader.cs b/src/StardewModdingAPI/Framework/ModLoading/AssemblyLoader.cs index f9c43f1f..871a081f 100644 --- a/src/StardewModdingAPI/Framework/ModLoading/AssemblyLoader.cs +++ b/src/StardewModdingAPI/Framework/ModLoading/AssemblyLoader.cs @@ -6,6 +6,7 @@ using System.Reflection; using Mono.Cecil; using Mono.Cecil.Cil; using StardewModdingAPI.Framework.Exceptions; +using StardewModdingAPI.Metadata; namespace StardewModdingAPI.Framework.ModLoading { @@ -213,7 +214,7 @@ namespace StardewModdingAPI.Framework.ModLoading // find (and optionally rewrite) incompatible instructions bool anyRewritten = false; - IInstructionRewriter[] rewriters = Constants.GetRewriters(this.Monitor).ToArray(); + IInstructionRewriter[] rewriters = new InstructionMetadata().GetRewriters().ToArray(); foreach (MethodDefinition method in this.GetMethods(module)) { // check method definition |