Add GetCombatLogPath/GetChatLogPath Lua functions, update log path globals
Register Lua functions to expose current log paths. At PLAYER_LOGIN, overwrite COMBATLOGENABLED/CHATLOGENABLED globals with actual redirected paths (English locale only). Update DLL_README with Lua API and logging enable instructions.
This commit is contained in:
@@ -108,6 +108,10 @@ fn registerLuaFunctions() void {
|
||||
if (build_opts.outline) {
|
||||
registerFunction("OutlineCommand", @intFromPtr(&outline.outlineCommand));
|
||||
}
|
||||
if (build_opts.combatlog) {
|
||||
registerFunction("GetCombatLogPath", @intFromPtr(&combatlog.luaGetCombatLogPath));
|
||||
registerFunction("GetChatLogPath", @intFromPtr(&combatlog.luaGetChatLogPath));
|
||||
}
|
||||
if (build_opts.worldmarkers and markers.isActive()) {
|
||||
// User-facing functions stay global
|
||||
registerFunction("WorldMarker", @intFromPtr(&markers.luaWorldMarker));
|
||||
|
||||
Reference in New Issue
Block a user