mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
(OSX) Add more alterations for OSX
This commit is contained in:
parent
778eafdfc2
commit
aa289e3879
@ -63,6 +63,8 @@ typedef enum
|
||||
void CFSearchPathForDirectoriesInDomains(unsigned flags,
|
||||
unsigned domain_mask, unsigned expand_tilde, char *buf, size_t sizeof_buf);
|
||||
|
||||
#ifdef IOS
|
||||
void CFTemporaryDirectory(char *buf, size_t sizeof_buf);
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
@ -41,6 +41,7 @@ NS_INLINE CF_RETURNS_RETAINED CFTypeRef CFBridgingRetainCompat(id X)
|
||||
#endif
|
||||
}
|
||||
|
||||
#ifdef IOS
|
||||
NS_INLINE CF_RETURNS_RETAINED CFStringRef CFBridgingRetainStringRefCompat(id X)
|
||||
{
|
||||
#if __has_feature(objc_arc)
|
||||
@ -79,6 +80,7 @@ void CFTemporaryDirectory(char *buf, size_t sizeof_buf)
|
||||
CFStringGetCString(path, buf, sizeof_buf, kCFStringEncodingUTF8);
|
||||
CFRelease(path);
|
||||
}
|
||||
#endif
|
||||
|
||||
void CFSearchPathForDirectoriesInDomains(unsigned flags,
|
||||
unsigned domain_mask, unsigned expand_tilde,
|
||||
|
@ -47,11 +47,11 @@ static void frontend_apple_get_environment_settings(int *argc, char *argv[],
|
||||
|
||||
CFStringGetCString(bundle_path, bundle_path_buf, sizeof(bundle_path_buf), kCFStringEncodingUTF8);
|
||||
(void)home_dir_buf;
|
||||
|
||||
|
||||
#ifdef IOS
|
||||
CFTemporaryDirectory(temp_dir, sizeof(temp_dir));
|
||||
strlcpy(g_defaults.extraction_dir, temp_dir, sizeof(g_defaults.extraction_dir));
|
||||
|
||||
#ifdef IOS
|
||||
CFSearchPathForDirectoriesInDomains(CFDocumentDirectory, CFUserDomainMask, 1, home_dir_buf, sizeof(home_dir_buf));
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user