Skip to content
This repository was archived by the owner on May 31, 2022. It is now read-only.

Commit 0c56653

Browse files
Allen WebsterAllen Webster
authored andcommitted
Get user directory on Mac
1 parent 3b259f6 commit 0c56653

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

platform_mac/mac_4ed_functions.mm

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,10 @@
4848

4949
case SystemPath_UserDirectory:
5050
{
51-
51+
char *home_cstr = getenv("HOME");
52+
if (home_cstr != 0){
53+
result = push_u8_stringf(arena, "%s/.4coder/", home_cstr);
54+
}
5255
}break;
5356
}
5457

0 commit comments

Comments
 (0)