Skip to content

Commit 0d3f3f3

Browse files
committed
More thorough debug workaround
Change the debug global variable from BAGSHUI_DEBUG to BAGSHUI_DEBUG_ON so anyone who got the old !BagshuiDebug addon accidentally installed by the Turtle WoW launcher installed will stop getting messages.
1 parent 11ab915 commit 0d3f3f3

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

Bagshui.lua

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,10 +703,10 @@ local bagshuiEnvironment = {
703703
---@type string
704704
BS_LOG_DATE_STRING = "%Y-%m-%d %H:%M:%S",
705705

706-
-- Ensure debug is never turned on in production by requiring another addon to set BAGSHUI_DEBUG to true prior to Bagshui loading.
707-
-- (I'm doing this via a one-line addon named !BagshuiDebug whose only code is BAGSHUI_DEBUG = true).
706+
-- Ensure debug is never turned on in production by requiring another addon to set BAGSHUI_DEBUG_ON to true prior to Bagshui loading.
707+
-- The !BagshuiDebug addon (in the Debug folder) is an easy way to enable this.
708708
---@type boolean
709-
BS_DEBUG = _G.BAGSHUI_DEBUG or false,
709+
BS_DEBUG = _G.BAGSHUI_DEBUG_ON or false,
710710

711711
-- Is SuperWoW loaded? Since it's a DLL injection, not an addon, IsAddOnLoaded() won't help here.
712712
---@type boolean

Debug/!BagshuiDebug/BagshuiDebug.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
BAGSHUI_DEBUG = true
1+
BAGSHUI_DEBUG_ON = true

Debug/!BagshuiDebug/Readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,6 @@ Install this addon to enable [Bagshui](https://github.com/veechs/Bagshui)’s de
55

66
There are also a few other debug flags scattered around that won’t function otherwise.
77

8-
All it does is set the global `BAGSHUI_DEBUG` to `true`.
8+
All it does is set the global `BAGSHUI_DEBUG_ON` to `true`.
99

1010
This exists as a separate addon so there’s no need to turn off debug for releases, since it’s off by default.

0 commit comments

Comments
 (0)