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

+2
View File
@@ -0,0 +1,2 @@
// Copyright (c) Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
+16
View File
@@ -0,0 +1,16 @@
// Copyright (c) Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#ifndef SHELL_H
#define SHELL_H
////////////////////////////////
//~ rjf: @per_os_impl Shell Operations
internal void sh_message(B32 error, String8 title, String8 message);
internal String8 sh_pick_file(Arena *arena, String8 title, String8 initial_path);
internal void sh_show_in_file_browser(String8 path);
internal void sh_open_in_browser(String8 url);
internal void sh_install_or_uninstall_self(B32 install);
#endif // SHELL_H
+11
View File
@@ -0,0 +1,11 @@
// Copyright (c) Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#include "shell.c"
#if OS_WINDOWS
# include "win32/shell/win32_shell.c"
#elif OS_LINUX
# include "linux/shell/linux_shell.c"
#else
# error Shell functions not implemented for this operating system.
#endif
+16
View File
@@ -0,0 +1,16 @@
// Copyright (c) Epic Games Tools
// Licensed under the MIT license (https://opensource.org/license/mit/)
#ifndef SHELL_INC_H
#define SHELL_INC_H
#include "shell.h"
#if OS_WINDOWS
# include "win32/shell/win32_shell.h"
#elif OS_LINUX
# include "linux/shell/linux_shell.h"
#else
# error Shell functions not implemented for this operating system.
#endif
#endif // SHELL_INC_H