Blindly implement the macos fetch of cache dir
This commit is contained in:
parent
daf9c4f319
commit
34bcf1883d
|
@ -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);
|
||||
}
|
Loading…
Reference in New Issue