mirror of
https://github.com/Ed94/raddebugger.git
synced 2026-10-02 14:08:43 +00:00
linux -> prefix user raddbg data with ., so we get ~/.raddbg normally - on windows keep normal style
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user