Blindly implement the macos fetch of cache dir

This commit is contained in:
Marek Roszko 2021-01-23 13:57:51 -05:00
parent daf9c4f319
commit 34bcf1883d
1 changed files with 6 additions and 1 deletions

View File

@ -66,5 +66,10 @@ wxString KIPLATFORM::ENV::GetUserConfigDir()
wxString KIPLATFORM::ENV::GetUserCacheDir() 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);
} }