Skip to content

Commit

Permalink
fix log dialogue commands
Browse files Browse the repository at this point in the history
  • Loading branch information
MegaPiggy committed Sep 11, 2024
1 parent ca51213 commit 6b14348
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Winch/Patches/API/DialogueRunnerPatcher.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,10 +14,12 @@ internal static class DialogueRunnerPatcher
[HarmonyPatch(nameof(DredgeDialogueRunner.Awake))]
public static void Awake_Postfix(DredgeDialogueRunner __instance)
{
__instance.AddCommandHandler<string>("LogDebug", __instance.LogDebug);
__instance.AddCommandHandler<string>("LogInfo", __instance.LogInfo);
__instance.AddCommandHandler<string>("LogWarn", __instance.LogWarn);
__instance.AddCommandHandler<string>("LogError", __instance.LogError);
#pragma warning disable IDE0200
__instance.AddCommandHandler<string>("LogDebug", message => __instance.LogDebug(message));
__instance.AddCommandHandler<string>("LogInfo", message => __instance.LogInfo(message));
__instance.AddCommandHandler<string>("LogWarn", message => __instance.LogWarn(message));
__instance.AddCommandHandler<string>("LogError", message => __instance.LogError(message));
#pragma warning restore IDE0200
DredgeEvent.TriggerDialogueRunnerLoaded(__instance);
}

Expand Down

0 comments on commit 6b14348

Please sign in to comment.