mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-11-17 11:40:13 -08:00
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:
1 parent
32ef9095e0
commit
867b64f7a2
26 files changed
+551
-201
No files matched your search
@@ -0,0 +1,2 @@
|
||||
// Copyright (c) Epic Games Tools
|
||||
// Licensed under the MIT license (https://opensource.org/license/mit/)
|
||||
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user