mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-18 23:21:32 -07:00
d3d11 debug layer exceptions; decimal enum displays; local time display in filesystem lister
This commit is contained in:
+10
-6
@@ -4726,18 +4726,22 @@ df_string_from_simple_typed_eval(Arena *arena, TG_Graph *graph, RADDBG_Parsed *r
|
||||
}
|
||||
if(flags & DF_EvalVizStringFlag_ReadOnlyDisplayRules)
|
||||
{
|
||||
result = push_str8f(arena, "0x%I64x%s%S%s", eval.imm_u64,
|
||||
constant_name.size != 0 ? " (" : "",
|
||||
constant_name,
|
||||
constant_name.size != 0 ? ")" : "");
|
||||
if(constant_name.size != 0)
|
||||
{
|
||||
result = push_str8f(arena, "0x%I64x (%S)", eval.imm_u64, constant_name);
|
||||
}
|
||||
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)
|
||||
{
|
||||
result = push_str8f(arena, "%S", constant_name);
|
||||
result = push_str8_copy(arena, constant_name);
|
||||
}
|
||||
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);
|
||||
}break;
|
||||
|
||||
@@ -2450,7 +2450,8 @@ DF_VIEW_UI_FUNCTION_DEF(FileSystem)
|
||||
UI_TextColor(df_rgba_from_theme_color(DF_ThemeColor_WeakText))
|
||||
{
|
||||
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);
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user