d3d11 debug layer exceptions; decimal enum displays; local time display in filesystem lister

This commit is contained in:
Ryan Fleury
2024-01-19 18:42:05 -08:00
parent f48d8431c0
commit 6a7dd334ff
4 changed files with 18 additions and 7 deletions
+1
View File
@@ -43,6 +43,7 @@ CTRL_ExceptionCodeKindTable:
{Win32ProcedureNotFound win32_procedure_not_found 0xc06d007f 0 "(Win32) Procedure Not Found" } {Win32ProcedureNotFound win32_procedure_not_found 0xc06d007f 0 "(Win32) Procedure Not Found" }
{Win32SanitizerErrorDetected win32_sanitizer_error_detected 0xe073616e 1 "(Win32) Sanitizer Error Detected" } {Win32SanitizerErrorDetected win32_sanitizer_error_detected 0xe073616e 1 "(Win32) Sanitizer Error Detected" }
{Win32SanitizerRawAccessViolation win32_sanitizer_raw_access_violation 0xe0736171 0 "(Win32) Sanitizer Raw Access Violation" } {Win32SanitizerRawAccessViolation win32_sanitizer_raw_access_violation 0xe0736171 0 "(Win32) Sanitizer Raw Access Violation" }
{Win32DirectXDebugLayer win32_directx_debug_layer 0x0000087a 1 "(Win32) DirectX Debug Layer" }
} }
//////////////////////////////// ////////////////////////////////
+5
View File
@@ -45,6 +45,7 @@ CTRL_ExceptionCodeKind_Win32ModuleNotFound,
CTRL_ExceptionCodeKind_Win32ProcedureNotFound, CTRL_ExceptionCodeKind_Win32ProcedureNotFound,
CTRL_ExceptionCodeKind_Win32SanitizerErrorDetected, CTRL_ExceptionCodeKind_Win32SanitizerErrorDetected,
CTRL_ExceptionCodeKind_Win32SanitizerRawAccessViolation, CTRL_ExceptionCodeKind_Win32SanitizerRawAccessViolation,
CTRL_ExceptionCodeKind_Win32DirectXDebugLayer,
CTRL_ExceptionCodeKind_COUNT CTRL_ExceptionCodeKind_COUNT
} CTRL_ExceptionCodeKind; } CTRL_ExceptionCodeKind;
@@ -87,6 +88,7 @@ U32 ctrl_exception_code_kind_code_table[] =
0xc06d007f, 0xc06d007f,
0xe073616e, 0xe073616e,
0xe0736171, 0xe0736171,
0x0000087a,
}; };
String8 ctrl_exception_code_kind_display_string_table[] = String8 ctrl_exception_code_kind_display_string_table[] =
@@ -128,6 +130,7 @@ str8_lit_comp("(Win32) Module Not Found"),
str8_lit_comp("(Win32) Procedure Not Found"), str8_lit_comp("(Win32) Procedure Not Found"),
str8_lit_comp("(Win32) Sanitizer Error Detected"), str8_lit_comp("(Win32) Sanitizer Error Detected"),
str8_lit_comp("(Win32) Sanitizer Raw Access Violation"), str8_lit_comp("(Win32) Sanitizer Raw Access Violation"),
str8_lit_comp("(Win32) DirectX Debug Layer"),
}; };
String8 ctrl_exception_code_kind_lowercase_code_string_table[] = String8 ctrl_exception_code_kind_lowercase_code_string_table[] =
@@ -169,6 +172,7 @@ str8_lit_comp("win32_module_not_found"),
str8_lit_comp("win32_procedure_not_found"), str8_lit_comp("win32_procedure_not_found"),
str8_lit_comp("win32_sanitizer_error_detected"), str8_lit_comp("win32_sanitizer_error_detected"),
str8_lit_comp("win32_sanitizer_raw_access_violation"), str8_lit_comp("win32_sanitizer_raw_access_violation"),
str8_lit_comp("win32_directx_debug_layer"),
}; };
B8 ctrl_exception_code_kind_default_enable_table[] = B8 ctrl_exception_code_kind_default_enable_table[] =
@@ -210,6 +214,7 @@ B8 ctrl_exception_code_kind_default_enable_table[] =
0, 0,
1, 1,
0, 0,
1,
}; };
+10 -6
View File
@@ -4726,18 +4726,22 @@ df_string_from_simple_typed_eval(Arena *arena, TG_Graph *graph, RADDBG_Parsed *r
} }
if(flags & DF_EvalVizStringFlag_ReadOnlyDisplayRules) if(flags & DF_EvalVizStringFlag_ReadOnlyDisplayRules)
{ {
result = push_str8f(arena, "0x%I64x%s%S%s", eval.imm_u64, if(constant_name.size != 0)
constant_name.size != 0 ? " (" : "", {
constant_name, result = push_str8f(arena, "0x%I64x (%S)", eval.imm_u64, constant_name);
constant_name.size != 0 ? ")" : ""); }
else if(constant_name.size != 0)
{
result = push_str8f(arena, "0x%I64x (%I64u)", eval.imm_u64, eval.imm_u64);
}
} }
else if(constant_name.size != 0) else if(constant_name.size != 0)
{ {
result = push_str8f(arena, "%S", constant_name); result = push_str8_copy(arena, constant_name);
} }
else else
{ {
result = push_str8f(arena, "0x%I64x", eval.imm_u64); result = push_str8f(arena, "0x%I64x (%I64u)", eval.imm_u64, eval.imm_u64);
} }
scratch_end(scratch); scratch_end(scratch);
}break; }break;
+2 -1
View File
@@ -2450,7 +2450,8 @@ DF_VIEW_UI_FUNCTION_DEF(FileSystem)
UI_TextColor(df_rgba_from_theme_color(DF_ThemeColor_WeakText)) UI_TextColor(df_rgba_from_theme_color(DF_ThemeColor_WeakText))
{ {
DateTime time = date_time_from_dense_time(file->props.modified); DateTime time = date_time_from_dense_time(file->props.modified);
String8 string = push_date_time_string(scratch.arena, &time); DateTime time_local = os_local_time_from_universal_time(&time);
String8 string = push_date_time_string(scratch.arena, &time_local);
ui_label(string); ui_label(string);
} }