Get user directory on Mac

master
Allen Webster 2021-01-17 16:11:47 -08:00
parent 3b259f6088
commit 0c56653397
1 changed files with 4 additions and 1 deletions

View File

@ -48,7 +48,10 @@ system_get_path_sig(){
case SystemPath_UserDirectory: case SystemPath_UserDirectory:
{ {
char *home_cstr = getenv("HOME");
if (home_cstr != 0){
result = push_u8_stringf(arena, "%s/.4coder/", home_cstr);
}
}break; }break;
} }