diff options
author | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-03-07 19:48:47 -0500 |
---|---|---|
committer | Jesse Plamondon-Willard <Pathoschild@users.noreply.github.com> | 2021-03-07 19:48:47 -0500 |
commit | 7914734375df7b4c94e9119611a0eb85cc2caac9 (patch) | |
tree | 98617c3cfdaa81b8e597fe6e97224d0a82758763 /src/SMAPI/Framework | |
parent | 0ed46c09104b823a5784690fa50e7022efc12c8f (diff) | |
download | SMAPI-7914734375df7b4c94e9119611a0eb85cc2caac9.tar.gz SMAPI-7914734375df7b4c94e9119611a0eb85cc2caac9.tar.bz2 SMAPI-7914734375df7b4c94e9119611a0eb85cc2caac9.zip |
get patcher names automatically if needed
Diffstat (limited to 'src/SMAPI/Framework')
-rw-r--r-- | src/SMAPI/Framework/Patching/GamePatcher.cs | 2 | ||||
-rw-r--r-- | src/SMAPI/Framework/Patching/IHarmonyPatch.cs | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/SMAPI/Framework/Patching/GamePatcher.cs b/src/SMAPI/Framework/Patching/GamePatcher.cs index 82d7b9c8..ddecda08 100644 --- a/src/SMAPI/Framework/Patching/GamePatcher.cs +++ b/src/SMAPI/Framework/Patching/GamePatcher.cs @@ -44,7 +44,7 @@ namespace StardewModdingAPI.Framework.Patching } catch (Exception ex) { - this.Monitor.Log($"Couldn't apply runtime patch '{patch.Name}' to the game. Some SMAPI features may not work correctly. See log file for details.", LogLevel.Error); + this.Monitor.Log($"Couldn't apply runtime patch '{patch.GetType().Name}' to the game. Some SMAPI features may not work correctly. See log file for details.", LogLevel.Error); this.Monitor.Log(ex.GetLogSummary(), LogLevel.Trace); } } diff --git a/src/SMAPI/Framework/Patching/IHarmonyPatch.cs b/src/SMAPI/Framework/Patching/IHarmonyPatch.cs index 922243fa..38d30ab2 100644 --- a/src/SMAPI/Framework/Patching/IHarmonyPatch.cs +++ b/src/SMAPI/Framework/Patching/IHarmonyPatch.cs @@ -9,9 +9,9 @@ namespace StardewModdingAPI.Framework.Patching /// <summary>A Harmony patch to apply.</summary> internal interface IHarmonyPatch { - /// <summary>A unique name for this patch.</summary> - string Name { get; } - + /********* + ** Methods + *********/ /// <summary>Apply the Harmony patch.</summary> /// <param name="harmony">The Harmony instance.</param> #if HARMONY_2 |