4 "Logs every message, including detailed trace output.",
5 "Logs debug, info, warning, error, and fatal messages.",
6 "Logs normal runtime messages and higher-severity messages.",
7 "Logs warnings, errors, and fatal messages.",
8 "Logs errors and fatal messages only.",
9 "Logs only fatal messages.",
13 "Writes a standard crash minidump.",
14 "Writes a larger crash minidump with additional details.",
19 "directory. Use null or \"\" to disable. "
25 "(release), detailed (debug).";
28 =
"Show a crash popup after writing the crash dump and logging the stack trace. "
29 "Turn this off to close immediately after a crash. Default: true.";
37 "##general_settings_table",
46 "Game Directory or ISO",
48 state->config.pcdogs_path,
49 sizeof(
state->config.pcdogs_path),
57 state->config.saves_path,
58 sizeof(
state->config.saves_path),
67 state->config.log_file_path,
68 sizeof(
state->config.log_file_path),
76 &
state->config.log_level,
86 (
int *)&
state->config.minidump_type,
96 &
state->config.show_crash_popup,
103 "##skip_intro_movies",
104 &
state->config.skip_intro_movies,
const DTTR_BackendState * state
static MINIDUMP_TYPE minidump_type()
@ DTTR_CONFIG_CHOICES_MINIDUMP_TYPE
@ DTTR_CONFIG_CHOICES_LOG_LEVEL
bool labeled_checkbox(const DTTR_ImGuiDialogContext *ctx, const char *label, const char *id, bool *value, const char *tooltip, config_label_state label_state)
#define PATH_FIELD_LABEL_STATE(state, field)
void end_settings_table()
bool labeled_log_path_picker(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state, const char *label, const char *id, char *buf, size_t buf_size, const char *tooltip, config_label_state label_state)
float config_standard_input_width()
#define FIELD_LABEL_STATE(state, field)
bool begin_tab_settings_table(const DTTR_ImGuiDialogContext *ctx, const char *id, float input_width)
bool labeled_input_text(const DTTR_ImGuiDialogContext *ctx, const char *label, const char *id, char *buf, size_t buf_size, const char *tooltip, config_label_state label_state)
bool labeled_path_picker(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state, const char *label, const char *id, char *buf, size_t buf_size, const char *tooltip, config_label_state label_state)
bool labeled_choice_combo(const DTTR_ImGuiDialogContext *ctx, const char *label, const char *id, int *value, DTTR_ConfigChoiceList choices, const char *const *tooltips, const char *tooltip, config_label_state label_state)
static const char * TOOLTIP_LOG_LEVEL
void draw_general_tab(const DTTR_ImGuiDialogContext *ctx, config_ui_state *state)
static const char * TOOLTIP_SAVES_PATH
static const char * TOOLTIP_SKIP_INTRO_MOVIES
static const char *const LOG_LEVEL_TOOLTIPS[]
static const char * TOOLTIP_MINIDUMP_TYPE
static const char *const MINIDUMP_TYPE_TOOLTIPS[]
static const char * TOOLTIP_SHOW_CRASH_POPUP
static const char * TOOLTIP_LOG_FILE_PATH
static const char * TOOLTIP_PCDOGS_PATH