From 0c5665339736845df0b0a8a24c70e1d0cff69cae Mon Sep 17 00:00:00 2001 From: Allen Webster Date: Sun, 17 Jan 2021 16:11:47 -0800 Subject: [PATCH] Get user directory on Mac --- platform_mac/mac_4ed_functions.mm | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/platform_mac/mac_4ed_functions.mm b/platform_mac/mac_4ed_functions.mm index e6f36903..c7597c69 100644 --- a/platform_mac/mac_4ed_functions.mm +++ b/platform_mac/mac_4ed_functions.mm @@ -48,7 +48,10 @@ system_get_path_sig(){ case SystemPath_UserDirectory: { - + char *home_cstr = getenv("HOME"); + if (home_cstr != 0){ + result = push_u8_stringf(arena, "%s/.4coder/", home_cstr); + } }break; }