fixed setting CFDocumentDirectory to not be iOS specific and respect other apple environments

This commit is contained in:
Yoshi Sugawara 2019-01-30 00:35:51 -10:00
parent ef0cfb2504
commit 57c6686a19

View File

@ -115,10 +115,10 @@ static NSSearchPathDirectory NSConvertFlagsCF(unsigned flags)
switch (flags)
{
case CFDocumentDirectory:
#if TARGET_OS_IOS
return NSDocumentDirectory;
#elif TARGET_OS_TV
return NSCachesDirectory;
#if TARGET_OS_TV
return NSCachesDirectory;
#else
return NSDocumentDirectory;
#endif
}