mirror of
https://github.com/Rockbox/rockbox.git
synced 2025-10-13 18:17:39 -04:00
Get rid of get_user_file_path and do the path handling in wrappers for open() and friends.
git-svn-id: svn://svn.rockbox.org/rockbox/trunk@28752 a1c6a512-1295-4272-9138-f99709370657
This commit is contained in:
parent
c35b43b0f5
commit
2c2416094f
25 changed files with 311 additions and 288 deletions
|
@ -81,11 +81,9 @@ static int initialize_catalog(void)
|
|||
/* fall back to default directory if no or invalid config */
|
||||
if (default_dir)
|
||||
{
|
||||
const char *dir = get_user_file_path(PLAYLIST_CATALOG_DEFAULT_DIR,
|
||||
FORCE_BUFFER_COPY|NEED_WRITE,
|
||||
playlist_dir, sizeof(playlist_dir));
|
||||
if (!dir_exists(dir))
|
||||
mkdir(dir);
|
||||
strcpy(playlist_dir, PLAYLIST_CATALOG_DEFAULT_DIR);
|
||||
if (!dir_exists(playlist_dir))
|
||||
mkdir(playlist_dir);
|
||||
}
|
||||
|
||||
playlist_dir_length = strlen(playlist_dir);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue