mirror of
https://github.com/libretro/RetroArch
synced 2025-04-09 21:45:45 +00:00
[android] add a default config dir
This commit is contained in:
parent
2c0f700d28
commit
7798be9f6e
@ -1229,7 +1229,7 @@ static bool frontend_linux_powerstate_check_apm(
|
|||||||
ssize_t length = 0;
|
ssize_t length = 0;
|
||||||
char *buf = NULL;
|
char *buf = NULL;
|
||||||
char *str = NULL;
|
char *str = NULL;
|
||||||
|
|
||||||
if (retro_read_file(proc_apm_path, (void**)&buf, &length) != 1)
|
if (retro_read_file(proc_apm_path, (void**)&buf, &length) != 1)
|
||||||
goto error;
|
goto error;
|
||||||
|
|
||||||
@ -1746,7 +1746,7 @@ static void frontend_linux_get_env(int *argc,
|
|||||||
(*env)->NewStringUTF(env, "DATADIR"));
|
(*env)->NewStringUTF(env, "DATADIR"));
|
||||||
|
|
||||||
if (android_app->getStringExtra && jstr)
|
if (android_app->getStringExtra && jstr)
|
||||||
{
|
{
|
||||||
int perms = 0;
|
int perms = 0;
|
||||||
const char *argv = (*env)->GetStringUTFChars(env, jstr, 0);
|
const char *argv = (*env)->GetStringUTFChars(env, jstr, 0);
|
||||||
|
|
||||||
@ -1856,6 +1856,11 @@ static void frontend_linux_get_env(int *argc,
|
|||||||
fill_pathname_join(g_defaults.dir.system,
|
fill_pathname_join(g_defaults.dir.system,
|
||||||
ext_dir, "system", sizeof(g_defaults.dir.system));
|
ext_dir, "system", sizeof(g_defaults.dir.system));
|
||||||
path_mkdir(g_defaults.dir.system);
|
path_mkdir(g_defaults.dir.system);
|
||||||
|
|
||||||
|
fill_pathname_join(g_defaults.dir.menu_config,
|
||||||
|
ext_dir, "config", sizeof(g_defaults.dir.menu_config));
|
||||||
|
path_mkdir(g_defaults.dir.menu_config);
|
||||||
|
|
||||||
break;
|
break;
|
||||||
case SDCARD_NOT_WRITABLE:
|
case SDCARD_NOT_WRITABLE:
|
||||||
fill_pathname_join(g_defaults.dir.sram,
|
fill_pathname_join(g_defaults.dir.sram,
|
||||||
@ -1867,6 +1872,10 @@ static void frontend_linux_get_env(int *argc,
|
|||||||
fill_pathname_join(g_defaults.dir.system,
|
fill_pathname_join(g_defaults.dir.system,
|
||||||
app_dir, "system", sizeof(g_defaults.dir.system));
|
app_dir, "system", sizeof(g_defaults.dir.system));
|
||||||
path_mkdir(g_defaults.dir.system);
|
path_mkdir(g_defaults.dir.system);
|
||||||
|
|
||||||
|
fill_pathname_join(g_defaults.dir.menu_config,
|
||||||
|
app_dir, "config", sizeof(g_defaults.dir.menu_config));
|
||||||
|
path_mkdir(g_defaults.dir.menu_config);
|
||||||
break;
|
break;
|
||||||
case SDCARD_ROOT_WRITABLE:
|
case SDCARD_ROOT_WRITABLE:
|
||||||
default:
|
default:
|
||||||
@ -1887,7 +1896,6 @@ static void frontend_linux_get_env(int *argc,
|
|||||||
path_mkdir(buf);
|
path_mkdir(buf);
|
||||||
|
|
||||||
/* create save and system directories in the internal sd too */
|
/* create save and system directories in the internal sd too */
|
||||||
|
|
||||||
fill_pathname_join(buf,
|
fill_pathname_join(buf,
|
||||||
ext_dir, "saves", sizeof(buf));
|
ext_dir, "saves", sizeof(buf));
|
||||||
path_mkdir(buf);
|
path_mkdir(buf);
|
||||||
@ -1927,7 +1935,7 @@ static void frontend_linux_get_env(int *argc,
|
|||||||
g_defaults.settings.video_refresh_rate = 59.65;
|
g_defaults.settings.video_refresh_rate = 59.65;
|
||||||
|
|
||||||
#if 0
|
#if 0
|
||||||
/* Explicitly disable input overlay by default
|
/* Explicitly disable input overlay by default
|
||||||
* for gamepad-like/console devices. */
|
* for gamepad-like/console devices. */
|
||||||
if (device_is_game_console(device_model))
|
if (device_is_game_console(device_model))
|
||||||
g_defaults.settings.input_overlay_enable = false;
|
g_defaults.settings.input_overlay_enable = false;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user