summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
diff options
context:
space:
mode:
authorJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-06-15 22:17:32 -0400
committerJesse Plamondon-Willard <Pathoschild@users.noreply.github.com>2020-06-15 22:17:32 -0400
commitdcd2c647a2abd836e8ee20f8ddad6568c9b4fbf2 (patch)
tree5a03bc9ec491467379f5bfea85e8778500461403 /src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
parent6d1cd7d9b884bddd00675dfdca9f63dc7db1bd1f (diff)
downloadSMAPI-dcd2c647a2abd836e8ee20f8ddad6568c9b4fbf2.tar.gz
SMAPI-dcd2c647a2abd836e8ee20f8ddad6568c9b4fbf2.tar.bz2
SMAPI-dcd2c647a2abd836e8ee20f8ddad6568c9b4fbf2.zip
temporarily restore Harmony 1.x support with compile flag (#711)
Diffstat (limited to 'src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs')
-rw-r--r--src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs b/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
index 8fed170a..b30d686e 100644
--- a/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
+++ b/src/SMAPI/Framework/ModLoading/Rewriters/Harmony1AssemblyRewriter.cs
@@ -1,3 +1,4 @@
+#if HARMONY_2
using System;
using HarmonyLib;
using Mono.Cecil;
@@ -125,3 +126,4 @@ namespace StardewModdingAPI.Framework.ModLoading.Rewriters
}
}
}
+#endif