From 34bcf1883da9913d6f951cbadb4330896c09bb61 Mon Sep 17 00:00:00 2001 From: Marek Roszko Date: Sat, 23 Jan 2021 13:57:51 -0500 Subject: [PATCH] Blindly implement the macos fetch of cache dir --- libs/kiplatform/osx/environment.mm | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/libs/kiplatform/osx/environment.mm b/libs/kiplatform/osx/environment.mm index 88aa464a12..848c93a366 100644 --- a/libs/kiplatform/osx/environment.mm +++ b/libs/kiplatform/osx/environment.mm @@ -66,5 +66,10 @@ wxString KIPLATFORM::ENV::GetUserConfigDir() wxString KIPLATFORM::ENV::GetUserCacheDir() { - return wxStandardPaths::Get().GetUserDir( wxStandardPaths::Dir::Dir_Cache ); + NSURL* url = [[NSFileManager defaultManager] URLForDirectory:NSCachesDirectory + inDomain:NSUserDomainMask + appropriateForURL:nil + create:NO error:nil]; + + return wxCFStringRef::AsString((CFStringRef)url.path); } \ No newline at end of file