(iOS) Use the sandboxed Documents directory

This commit is contained in:
twinaphex 2015-11-18 03:27:50 +01:00
parent 88cbdbdfda
commit 13b8b957b2

View File

@ -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));