From 9785243eea7e76aa9d5aecb12ba7eca3d04c2a90 Mon Sep 17 00:00:00 2001 From: goaaats Date: Sat, 29 Jan 2022 05:04:28 +0100 Subject: [PATCH] feat: only enable ContextMenu module when testing --- Dalamud/Game/Gui/GameGui.cs | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/Dalamud/Game/Gui/GameGui.cs b/Dalamud/Game/Gui/GameGui.cs index 6feee6996..5638f8b50 100644 --- a/Dalamud/Game/Gui/GameGui.cs +++ b/Dalamud/Game/Gui/GameGui.cs @@ -2,6 +2,7 @@ using System; using System.Numerics; using System.Runtime.InteropServices; +using Dalamud.Configuration.Internal; using Dalamud.Game.Gui.ContextMenus; using Dalamud.Game.Gui.Dtr; using Dalamud.Game.Gui.FlyText; @@ -443,7 +444,15 @@ namespace Dalamud.Game.Gui Service.Get().Enable(); Service.Get().Enable(); Service.Get().Enable(); - Service.Get().Enable(); + + // TODO(goat): Remove when stable + var config = Service.Get(); + if (config.DalamudBetaKey == DalamudConfiguration.DalamudCurrentBetaKey) + { + Log.Warning("TAKE CARE!!! You are using Dalamud Testing, so the new context menu feature is enabled.\nThis may cause crashes with unupdated plugins."); + Service.Get().Enable(); + } + this.setGlobalBgmHook.Enable(); this.handleItemHoverHook.Enable(); this.handleItemOutHook.Enable();