mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-13 20:39:41 -07:00
linux -> prefix user raddbg data with ., so we get ~/.raddbg normally - on windows keep normal style
This commit is contained in:
1 parent
a75cb2c32d
commit
fe4de192e4
8 files changed
+47
-29
No files matched your search
@@ -1443,6 +1443,22 @@ str8_from_version(Arena *arena, U64 version)
|
||||
////////////////////////////////
|
||||
//~ rjf: String Path Helpers
|
||||
|
||||
internal String8
|
||||
program_data_folder_prefix_from_os(OperatingSystem os)
|
||||
{
|
||||
String8 result = {0};
|
||||
switch(os)
|
||||
{
|
||||
default:{}break;
|
||||
case OperatingSystem_Linux:
|
||||
case OperatingSystem_Mac:
|
||||
{
|
||||
result = s(".");
|
||||
}break;
|
||||
}
|
||||
return result;
|
||||
}
|
||||
|
||||
internal String8
|
||||
str8_chop_last_slash(String8 string)
|
||||
{
|
||||
|
||||
@@ -319,6 +319,8 @@ g_path_style_map[] =
|
||||
{ str8_lit_comp("system"), PathStyle_SystemAbsolute },
|
||||
};
|
||||
|
||||
internal String8 program_data_folder_prefix_from_os(OperatingSystem os);
|
||||
|
||||
internal String8 str8_chop_last_slash(String8 string);
|
||||
internal String8 str8_skip_last_slash(String8 string);
|
||||
internal String8 str8_chop_last_dot(String8 string);
|
||||
|
||||
Reference in new issue
Block a user