mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
Remove database_playlist_realloc
This commit is contained in:
parent
79cb3abd32
commit
6294d7a360
@ -386,17 +386,3 @@ void database_playlist_free(content_playlist_t *db_playlist)
|
||||
if (db_playlist)
|
||||
content_playlist_free(db_playlist);
|
||||
}
|
||||
|
||||
bool database_playlist_realloc(
|
||||
content_playlist_t *db_playlist,
|
||||
const char *path)
|
||||
{
|
||||
database_playlist_free(db_playlist);
|
||||
|
||||
db_playlist = content_playlist_init(path, 1000);
|
||||
|
||||
if (!db_playlist)
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -103,9 +103,6 @@ int database_info_build_query(
|
||||
|
||||
void database_playlist_free(content_playlist_t *db_playlist);
|
||||
|
||||
bool database_playlist_realloc(
|
||||
content_playlist_t *db_playlist, const char *path);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
@ -53,10 +53,12 @@ static int action_ok_playlist_entry(const char *path,
|
||||
if (!strcmp(label, "collection") ||
|
||||
!strcmp(label, "rdb_entry_start_game"))
|
||||
{
|
||||
playlist = NULL;
|
||||
free_list = true;
|
||||
|
||||
database_playlist_realloc(playlist, menu->db_playlist_file);
|
||||
playlist = content_playlist_init(menu->db_playlist_file, 1000);
|
||||
|
||||
if (!playlist)
|
||||
return -1;
|
||||
}
|
||||
|
||||
selection_ptr = menu->navigation.selection_ptr;
|
||||
|
Loading…
x
Reference in New Issue
Block a user