mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 18:32:44 +00:00
(iOS) Use the sandboxed Documents directory
This commit is contained in:
parent
88cbdbdfda
commit
13b8b957b2
@ -334,7 +334,12 @@ static void frontend_darwin_get_environment_settings(int *argc, char *argv[],
|
||||
|
||||
CFSearchPathForDirectoriesInDomains(CFDocumentDirectory, CFUserDomainMask, 1, home_dir_buf, sizeof(home_dir_buf));
|
||||
|
||||
#if TARGET_OS_IPHONE
|
||||
/* Use the sandboxed Documents directory */
|
||||
strlcat(home_dir_buf, "/", sizeof(home_dir_buf));
|
||||
#else
|
||||
strlcat(home_dir_buf, "/RetroArch", sizeof(home_dir_buf));
|
||||
#endif
|
||||
fill_pathname_join(g_defaults.dir.shader, home_dir_buf, "shaders_glsl", sizeof(g_defaults.dir.shader));
|
||||
fill_pathname_join(g_defaults.dir.core, home_dir_buf, "cores", sizeof(g_defaults.dir.core));
|
||||
fill_pathname_join(g_defaults.dir.core_info, home_dir_buf, "info", sizeof(g_defaults.dir.core_info));
|
||||
|
Loading…
x
Reference in New Issue
Block a user