(Android) Default libretro path directory

This commit is contained in:
twinaphex 2013-10-30 23:50:07 +01:00
parent f2e85f9b9b
commit 32acec4ab9
2 changed files with 9 additions and 0 deletions

View File

@ -308,6 +308,12 @@ static const char *default_libretro_info_path = "/Applications/RetroArch.app/inf
static const char *default_libretro_info_path = NULL;
#endif
#if defined(ANDROID)
static const char *default_libretro_path = "/data/data/com.retroarch/cores/";
#else
static const char *default_libretro_path = NULL;
#endif
// Crop overscanned frames.
static const bool crop_overscan = true;

View File

@ -344,6 +344,9 @@ void config_set_defaults(void)
if (default_shader_dir)
strlcpy(g_settings.video.shader_dir, default_shader_dir, sizeof(g_settings.video.shader_dir));
if (default_libretro_path)
strlcpy(g_settings.libretro, default_libretro_path, sizeof(g_settings.libretro));
if (default_libretro_info_path)
strlcpy(g_settings.libretro_info_path, default_libretro_info_path, sizeof(g_settings.libretro_info_path));