diff 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
line wrap: on
line diff
--- a/src/core/filesystem.cc	Thu Dec 07 01:56:39 2023 -0500
+++ b/src/core/filesystem.cc	Thu Dec 07 03:17:05 2023 -0500
@@ -49,7 +49,11 @@
 
 	return path / CONFIG_DIR;
 #elif defined(MACOSX)
-	return std::filesystem::path(osx::GetApplicationSupportDirectory()) / CONFIG_DIR;
+	std::string appsupport;
+	if (!osx::GetApplicationSupportDirectory(appsupport))
+		return "";
+
+	return std::filesystem::path(appsupport) / CONFIG_DIR;
 #else // just assume POSIX
 	std::filesystem::path path;
 	const char* home = getenv("HOME");