comparison src/core/filesystem.cc @ 194:8548dc425697

sys/osx: remove all objective-c++ stuff mmmm :)
author Paper <mrpapersonic@gmail.com>
date Thu, 07 Dec 2023 03:17:05 -0500
parents 121c2d5b321f
children 53211cb1e7f5
comparison
equal deleted inserted replaced
193:0ad2507c3e60 194:8548dc425697
47 47
48 CoTaskMemFree(buf); 48 CoTaskMemFree(buf);
49 49
50 return path / CONFIG_DIR; 50 return path / CONFIG_DIR;
51 #elif defined(MACOSX) 51 #elif defined(MACOSX)
52 return std::filesystem::path(osx::GetApplicationSupportDirectory()) / CONFIG_DIR; 52 std::string appsupport;
53 if (!osx::GetApplicationSupportDirectory(appsupport))
54 return "";
55
56 return std::filesystem::path(appsupport) / CONFIG_DIR;
53 #else // just assume POSIX 57 #else // just assume POSIX
54 std::filesystem::path path; 58 std::filesystem::path path;
55 const char* home = getenv("HOME"); 59 const char* home = getenv("HOME");
56 60
57 # ifdef __linux__ 61 # ifdef __linux__