split shell operation abstraction from graphical window manager abstraction - do basic integration of common linux utilities for implementing shell operations - also add 'sh_install_or_uninstall_self' for doing shell-specific operations related to installing or uninstalling an application. hook up to config state in raddbg

This commit is contained in:
Ryan Fleury committed 2026-08-06 12:53:05 -06:00
1 parent 32ef9095e0
commit 867b64f7a2
26 files changed
+551 -201

No files matched your search

+15 -4
View File
@@ -7549,7 +7549,7 @@ rd_window_frame(void)
UI_Signal sig = ui_button(str8_lit("Submit request, issue, or bug report"));
if(ui_clicked(sig))
{
wm_open_in_browser(url);
sh_open_in_browser(url);
}
}
ui_spacer(ui_em(0.5f, 1.f));
@@ -8018,7 +8018,7 @@ rd_window_frame(void)
ui_box_equip_display_fstrs(label, &fstrs);
if(ui_clicked(sig))
{
wm_open_in_browser(s("https://github.com/EpicGames/raddebugger/releases/latest"));
sh_open_in_browser(s("https://github.com/EpicGames/raddebugger/releases/latest"));
}
}
@@ -13201,6 +13201,17 @@ rd_frame(void)
rd_state->eval_viz_base_string_flags |= EV_StringFlag_DisplayAddressUnmappedStatus;
}
////////////////////////////
//- rjf: do installation/uninstallation of app
//
B32 installed = rd_setting_b32_from_name(s("install_to_system"));
B32 last_installed = rd_state->installed;
if(installed != last_installed)
{
sh_install_or_uninstall_self(installed);
rd_state->installed = installed;
}
////////////////////////////
//- rjf: send update check if needed
//
@@ -13503,7 +13514,7 @@ rd_frame(void)
{
cmd_title = info->string;
}
String8 file_path = wm_graphical_pick_file(scratch.arena, cmd_title, current_path_string);
String8 file_path = sh_pick_file(scratch.arena, cmd_title, current_path_string);
file_path = path_normalized_from_string(scratch.arena, file_path);
if(file_path.size != 0)
{
@@ -15084,7 +15095,7 @@ rd_frame(void)
if(rd_regs()->file_path.size != 0)
{
String8 full_path = rd_regs()->file_path;
wm_show_in_filesystem_ui(full_path);
sh_show_in_file_browser(full_path);
}break;
//- rjf: source <-> disasm