|
102 Patches: Detours to the Rescue
C reference for DttR maintainers and modders.
|
Go to the source code of this file.
Data Structures | |
| struct | text_span |
Macros | |
| #define | DTTR_ERROR_UI_WINDOW_W 560 |
| #define | DTTR_ERROR_UI_INITIAL_WINDOW_H 120 |
| #define | DTTR_ERROR_UI_BUTTON_H 28.0f |
| #define | DTTR_ERROR_UI_TEXT_PADDING_X 18.0f |
| #define | DTTR_ERROR_UI_TEXT_PADDING_Y 16.0f |
| #define | DTTR_ERROR_UI_STACK_BOX_H 150.0f |
| #define | DTTR_VERSION "unknown" |
Variables | |
| static const char *const | ERROR_TITLE = "DttR: Error" |
| static const char *const | HEADER_TITLE = "102 Crashes: Traces to the Rescue!" |
| static const char *const | CRASH_DETAILS_MARKER = "\n\nContextFlags=" |
| static const char *const | STACK_TRACE_MARKER = "\n\nStack trace:" |
| static const char *const | DUMP_MARKER = "\n\nDump written to:" |
| static const char *const | REPORT_MARKER = "\n\nFeel free to report this error" |
| #define DTTR_ERROR_UI_BUTTON_H 28.0f |
Definition at line 9 of file imgui_error_ui.c.
Referenced by DTTR_ImGui_ErrorShow().
| #define DTTR_ERROR_UI_INITIAL_WINDOW_H 120 |
Definition at line 8 of file imgui_error_ui.c.
Referenced by DTTR_ImGui_ErrorShow().
| #define DTTR_ERROR_UI_STACK_BOX_H 150.0f |
Definition at line 12 of file imgui_error_ui.c.
| #define DTTR_ERROR_UI_TEXT_PADDING_X 18.0f |
Definition at line 10 of file imgui_error_ui.c.
Referenced by DTTR_ImGui_ErrorShow(), and text_padding_x().
| #define DTTR_ERROR_UI_TEXT_PADDING_Y 16.0f |
Definition at line 11 of file imgui_error_ui.c.
Referenced by draw_copyable_stack_trace(), and DTTR_ImGui_ErrorShow().
| #define DTTR_ERROR_UI_WINDOW_W 560 |
Definition at line 7 of file imgui_error_ui.c.
Referenced by DTTR_ImGui_ErrorShow().
| #define DTTR_VERSION "unknown" |
Definition at line 15 of file imgui_error_ui.c.
Referenced by draw_ui(), DTTR_ImGui_ErrorShow(), DTTR_LoaderUI_ChooseGameSource(), and update_window_title().
|
static |
Definition at line 92 of file imgui_error_ui.c.
References ctx, DTTR_IMGUI_COLOR_LINK, and set_text_padding_x().
Referenced by draw_dump_text(), and draw_report_text().
|
static |
Definition at line 181 of file imgui_error_ui.c.
References ctx, draw_dump_text(), draw_report_text(), DTTR_ERROR_UI_TEXT_PADDING_Y, DTTR_IMGUI_COLOR_STACK_FRAME_BG, DTTR_ImGuiDialog_OffsetCursorY(), find_summary_dump(), NULL, error_message::report_text, set_text_padding_x(), span(), error_message::stack_trace, error_message::summary_end, and text_padding_x().
Referenced by DTTR_ImGui_ErrorShow().
|
static |
Definition at line 129 of file imgui_error_ui.c.
References ctx, draw_clickable_text(), draw_wrapped_text_span(), text_span::end, file_url_for_parent_dir(), NULL, sdsnewspan(), span(), span_len(), and text_span::text.
Referenced by draw_copyable_stack_trace().
|
static |
Definition at line 155 of file imgui_error_ui.c.
References ctx, draw_clickable_text(), draw_wrapped_text(), draw_wrapped_text_span(), sdsnewspan(), and span().
Referenced by draw_copyable_stack_trace().
|
static |
Definition at line 88 of file imgui_error_ui.c.
References ctx, draw_wrapped_text_span(), and span().
Referenced by draw_report_text().
|
static |
Definition at line 81 of file imgui_error_ui.c.
References ctx, set_text_padding_x(), span_len(), text_span::text, and text_padding_x().
Referenced by draw_dump_text(), draw_report_text(), and draw_wrapped_text().
| bool DTTR_ImGui_ErrorShow | ( | const char * | title, |
| const char * | message ) |
Definition at line 221 of file imgui_error_ui.c.
References ctx, draw_copyable_stack_trace(), DTTR_ERROR_UI_BUTTON_H, DTTR_ERROR_UI_INITIAL_WINDOW_H, DTTR_ERROR_UI_TEXT_PADDING_X, DTTR_ERROR_UI_TEXT_PADDING_Y, DTTR_ERROR_UI_WINDOW_W, DTTR_ImGuiDialog_Begin(), DTTR_ImGuiDialog_BeginRoot(), DTTR_ImGuiDialog_Button(), DTTR_ImGuiDialog_CenterNextItem(), DTTR_ImGuiDialog_DrawHeader(), DTTR_ImGuiDialog_DrawPaddedText(), DTTR_ImGuiDialog_End(), DTTR_ImGuiDialog_EndRoot(), DTTR_ImGuiDialog_FitWindowToContent(), DTTR_ImGuiDialog_NewFrame(), DTTR_ImGuiDialog_ProcessEvents(), DTTR_ImGuiDialog_RefreshScale(), DTTR_ImGuiDialog_Render(), DTTR_ImGuiDialog_ScaledFloat(), DTTR_VERSION, ERROR_TITLE, HEADER_TITLE, parse_error_message(), error_message::stack_trace, and window_title.
Referenced by DTTR_LoaderUI_ShowError(), and unhandled_exception_filter().
|
static |
Definition at line 103 of file imgui_error_ui.c.
References DTTR_Path_IsSeparator(), and NULL.
Referenced by draw_dump_text().
|
static |
Definition at line 176 of file imgui_error_ui.c.
References DUMP_MARKER, NULL, and error_message::summary_end.
Referenced by draw_copyable_stack_trace().
|
static |
Definition at line 56 of file imgui_error_ui.c.
References CRASH_DETAILS_MARKER, REPORT_MARKER, and STACK_TRACE_MARKER.
Referenced by DTTR_ImGui_ErrorShow().
|
static |
Definition at line 44 of file imgui_error_ui.c.
References span(), and span_len().
Referenced by draw_dump_text(), and draw_report_text().
|
static |
Definition at line 52 of file imgui_error_ui.c.
References ctx, and text_padding_x().
Referenced by draw_clickable_text(), draw_copyable_stack_trace(), and draw_wrapped_text_span().
|
static |
Definition at line 36 of file imgui_error_ui.c.
Referenced by draw_copyable_stack_trace(), draw_dump_text(), draw_report_text(), draw_wrapped_text(), sdsnewspan(), and span_len().
|
static |
Definition at line 40 of file imgui_error_ui.c.
References span().
Referenced by draw_dump_text(), draw_wrapped_text_span(), and sdsnewspan().
|
static |
Definition at line 48 of file imgui_error_ui.c.
References ctx, DTTR_ERROR_UI_TEXT_PADDING_X, and DTTR_ImGuiDialog_ScaledFloat().
Referenced by draw_copyable_stack_trace(), draw_wrapped_text_span(), and set_text_padding_x().
|
static |
Definition at line 20 of file imgui_error_ui.c.
Referenced by parse_error_message().
|
static |
Definition at line 22 of file imgui_error_ui.c.
Referenced by find_summary_dump().
|
static |
Definition at line 18 of file imgui_error_ui.c.
Referenced by DTTR_ImGui_ErrorShow(), and DTTR_LoaderUI_ShowError().
|
static |
Definition at line 19 of file imgui_error_ui.c.
Referenced by DTTR_ImGui_ErrorShow(), and DTTR_LoaderUI_ChooseGameSource().
|
static |
Definition at line 23 of file imgui_error_ui.c.
Referenced by parse_error_message().
|
static |
Definition at line 21 of file imgui_error_ui.c.
Referenced by parse_error_message().