Move log path update from core addon to logsessions addon

The combat/chat log path global updates are logsessions-specific and
don't belong in the core addon. Created a dedicated LogSessions addon
with its own TOC, embedded file entries, and conditional loading.
This commit is contained in:
MarcelineVQ
2026-03-07 10:58:24 -08:00
parent 0f59db18e8
commit 23e44cd2a4
4 changed files with 33 additions and 8 deletions
+13
View File
@@ -0,0 +1,13 @@
-- LogSessions addon: update log path globals to show actual redirected paths
local frame = CreateFrame("Frame")
frame:RegisterEvent("PLAYER_LOGIN")
frame:SetScript("OnEvent", function()
if GetCombatLogPath and COMBATLOGENABLED == "Combat being logged to Logs\\WoWCombatLog.txt" then
COMBATLOGENABLED = "Combat being logged to " .. GetCombatLogPath()
end
if GetChatLogPath and CHATLOGENABLED == "Chat being logged to Logs\\WoWChatLog.txt" then
CHATLOGENABLED = "Chat being logged to " .. GetChatLogPath()
end
end)
+7
View File
@@ -0,0 +1,7 @@
## Interface: 11200
## Title: LogSessions
## Notes: Session-based combat and chat log management
## Version: 1.0
## Dependencies: WeirdUtils
LogSessions.lua