mirror of
https://github.com/libretro/RetroArch
synced 2025-01-29 00:32:49 +00:00
(Android) Add default dirs for playlists, wallpapers, remaps
This commit is contained in:
parent
1e794b8d85
commit
e030aee324
@ -722,6 +722,12 @@ static void config_set_defaults(void)
|
||||
global->console.sound.mode = SOUND_MODE_NORMAL;
|
||||
#endif
|
||||
|
||||
if (*g_defaults.wallpapers_dir)
|
||||
strlcpy(settings->dynamic_wallpapers_directory,
|
||||
g_defaults.wallpapers_dir, sizeof(settings->dynamic_wallpapers_directory));
|
||||
if (*g_defaults.remap_dir)
|
||||
strlcpy(settings->input_remapping_directory,
|
||||
g_defaults.remap_dir, sizeof(settings->input_remapping_directory));
|
||||
if (*g_defaults.extraction_dir)
|
||||
strlcpy(settings->extraction_directory,
|
||||
g_defaults.extraction_dir, sizeof(settings->extraction_directory));
|
||||
|
@ -621,6 +621,12 @@ static void frontend_android_get_environment_settings(int *argc,
|
||||
path, "database/cursors", sizeof(g_defaults.cursor_dir));
|
||||
fill_pathname_join(g_defaults.cheats_dir,
|
||||
path, "cheats", sizeof(g_defaults.cheats_dir));
|
||||
fill_pathname_join(g_defaults.playlist_dir,
|
||||
path, "playlists", sizeof(g_defaults.playlist_dir));
|
||||
fill_pathname_join(g_defaults.remap_dir,
|
||||
path, "remaps", sizeof(g_defaults.remap_dir));
|
||||
fill_pathname_join(g_defaults.wallpapers_dir,
|
||||
path, "wallpapers", sizeof(g_defaults.wallpapers_dir));
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -91,7 +91,9 @@ struct defaults
|
||||
char system_dir[PATH_MAX_LENGTH];
|
||||
char playlist_dir[PATH_MAX_LENGTH];
|
||||
char content_history_dir[PATH_MAX_LENGTH];
|
||||
char remap_dir[PATH_MAX_LENGTH];
|
||||
char extraction_dir[PATH_MAX_LENGTH];
|
||||
char wallpapers_dir[PATH_MAX_LENGTH];
|
||||
char database_dir[PATH_MAX_LENGTH];
|
||||
char cursor_dir[PATH_MAX_LENGTH];
|
||||
char cheats_dir[PATH_MAX_LENGTH];
|
||||
|
Loading…
x
Reference in New Issue
Block a user