Update DLL_README for per-character log dirs, drop PID from filenames

This commit is contained in:
MarcelineVQ
2026-03-04 14:06:08 -08:00
parent ddd4c9681d
commit 0c76c99734
2 changed files with 31 additions and 8 deletions
+1 -3
View File
@@ -260,9 +260,8 @@ fn resolveLogPath(prefix: []const u8, result_buf: *[260]u8) usize {
// Generate new timestamped filename
var st: SYSTEMTIME = undefined;
GetLocalTime(&st);
const pid = GetCurrentProcessId();
const path = std.fmt.bufPrint(result_buf, "{s}{s}_{d:0>4}{d:0>2}{d:0>2}_{d:0>2}{d:0>2}{d:0>2}_{d}.txt", .{
const path = std.fmt.bufPrint(result_buf, "{s}{s}_{d:0>4}{d:0>2}{d:0>2}_{d:0>2}{d:0>2}{d:0>2}.txt", .{
g_dir_path[0..g_dir_path_len],
prefix,
st.wYear,
@@ -271,7 +270,6 @@ fn resolveLogPath(prefix: []const u8, result_buf: *[260]u8) usize {
st.wHour,
st.wMinute,
st.wSecond,
pid,
}) catch return 0;
result_buf[path.len] = 0;
con.fmt("[combatlog] new: {s}\n", .{path});