mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-07-31 11:20:03 +00:00
move to codebase-defined entry point style, with basic command line argument parsing, capture, thread-ctx, and other boilerplate deduplicated in the base layer's entry point definition
This commit is contained in:
@@ -8496,7 +8496,7 @@ df_core_begin_frame(Arena *arena, DF_CmdList *cmds, F32 dt)
|
||||
case DF_CoreCmdKind_RegisterAsJITDebugger:
|
||||
{
|
||||
#if OS_WINDOWS
|
||||
String8 path_to_debugger_binary = os_get_command_line_arguments().first->string;
|
||||
String8 path_to_debugger_binary = os_string_from_system_path(scratch.arena, OS_SystemPath_Binary);
|
||||
String8 name8 = str8_lit("Debugger");
|
||||
String8 data8 = push_str8f(scratch.arena, "%S --jit_pid:%%ld --jit_code:%%ld --jit_addr:0x%%p", path_to_debugger_binary);
|
||||
String16 name16 = str16_from_8(scratch.arena, name8);
|
||||
|
||||
+2
-2
@@ -945,7 +945,7 @@ df_window_open(Vec2F32 size, OS_Handle preferred_monitor, DF_CfgSrc cfg_src)
|
||||
window->cfg_src = cfg_src;
|
||||
window->arena = arena_alloc();
|
||||
{
|
||||
String8 title = str8_lit_comp(RADDBG_TITLE_STRING_LITERAL);
|
||||
String8 title = str8_lit_comp(BUILD_TITLE_STRING_LITERAL);
|
||||
window->os = os_window_open(size, title);
|
||||
}
|
||||
window->r = r_window_equip(window->os);
|
||||
@@ -4267,7 +4267,7 @@ df_window_update_and_render(Arena *arena, OS_EventList *events, DF_Window *ws, D
|
||||
UI_CtxMenu(help_menu_key) UI_PrefWidth(ui_em(40.f, 1.f))
|
||||
{
|
||||
UI_Row UI_TextAlignment(UI_TextAlign_Center) UI_TextColor(df_rgba_from_theme_color(DF_ThemeColor_WeakText))
|
||||
ui_label(str8_lit(RADDBG_TITLE_STRING_LITERAL));
|
||||
ui_label(str8_lit(BUILD_TITLE_STRING_LITERAL));
|
||||
ui_spacer(ui_em(0.25f, 1.f));
|
||||
UI_Row
|
||||
UI_PrefWidth(ui_text_dim(10, 1))
|
||||
|
||||
Reference in New Issue
Block a user