summaryrefslogtreecommitdiff
path: root/src/SMAPI/Framework/Patching/IHarmonyPatch.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/SMAPI/Framework/Patching/IHarmonyPatch.cs')
-rw-r--r--src/SMAPI/Framework/Patching/IHarmonyPatch.cs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/SMAPI/Framework/Patching/IHarmonyPatch.cs b/src/SMAPI/Framework/Patching/IHarmonyPatch.cs
index 7d5eb3d4..922243fa 100644
--- a/src/SMAPI/Framework/Patching/IHarmonyPatch.cs
+++ b/src/SMAPI/Framework/Patching/IHarmonyPatch.cs
@@ -1,4 +1,8 @@
+#if HARMONY_2
using HarmonyLib;
+#else
+using Harmony;
+#endif
namespace StardewModdingAPI.Framework.Patching
{
@@ -10,6 +14,10 @@ namespace StardewModdingAPI.Framework.Patching
/// <summary>Apply the Harmony patch.</summary>
/// <param name="harmony">The Harmony instance.</param>
+#if HARMONY_2
void Apply(Harmony harmony);
+#else
+ void Apply(HarmonyInstance harmony);
+#endif
}
}