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:
@@ -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)
|
||||
@@ -0,0 +1,7 @@
|
||||
## Interface: 11200
|
||||
## Title: LogSessions
|
||||
## Notes: Session-based combat and chat log management
|
||||
## Version: 1.0
|
||||
## Dependencies: WeirdUtils
|
||||
|
||||
LogSessions.lua
|
||||
Reference in New Issue
Block a user