(Android) Add default dirs for playlists, wallpapers, remaps

This commit is contained in:
twinaphex 2015-07-03 22:26:08 +02:00
parent 1e794b8d85
commit e030aee324
3 changed files with 14 additions and 0 deletions

View File

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

View File

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

View File

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