add switch to override default logs folder

This commit is contained in:
Nikita Smith authored and Ryan Fleury committed 2026-06-02 12:10:04 -07:00
1 parent b4dd1f6fd3
commit b23323c03d
5 files changed
+32 -22

No files matched your search

+7 -10
View File
@@ -10597,16 +10597,13 @@ rd_init(CmdLine *cmdln)
rd_state->frame_arenas[idx] = arena_alloc();
}
rd_state->log = log_alloc();
log_select(rd_state->log);
{
Temp scratch = scratch_begin(0, 0);
String8 user_program_data_path = get_process_info()->user_program_data_path;
String8 user_data_folder = push_str8f(scratch.arena, "%S/%Sraddbg/logs", user_program_data_path, program_data_folder_prefix_from_os(OperatingSystem_CURRENT));
rd_state->log_path = push_str8f(rd_state->arena, "%S/ui_thread.raddbg_log", user_data_folder);
make_directory(user_data_folder);
write_data_to_file_path(rd_state->log_path, str8_zero());
scratch_end(scratch);
}
log_select(rd_state->log);
{
Temp scratch = scratch_begin(0, 0);
rd_state->log_path = push_str8f(rd_state->arena, "%S/ui_thread.raddbg_log", g_logs_folder);
write_data_to_file_path(rd_state->log_path, str8_zero());
scratch_end(scratch);
}
rd_state->num_frames_requested = 2;
rd_state->seconds_until_autosave = 0.5f;
rd_state->eval_cache = e_cache_alloc();