mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Add 'force' parameter to menu_database_realloc
This commit is contained in:
parent
adbcab3912
commit
2197a7b5c0
@ -54,9 +54,10 @@ void menu_database_free(menu_handle_t *menu)
|
||||
menu_database_playlist_free(menu);
|
||||
}
|
||||
|
||||
bool menu_database_realloc(menu_handle_t *menu, const char *path)
|
||||
bool menu_database_realloc(menu_handle_t *menu, const char *path,
|
||||
bool force)
|
||||
{
|
||||
if (!strcmp(menu->db_playlist_file, path))
|
||||
if (!strcmp(menu->db_playlist_file, path) && !force)
|
||||
return true;
|
||||
|
||||
menu_database_playlist_free(menu);
|
||||
|
@ -32,7 +32,8 @@ int menu_database_populate_query(file_list_t *list, const char *path,
|
||||
|
||||
void menu_database_free(menu_handle_t *menu);
|
||||
|
||||
bool menu_database_realloc(menu_handle_t *menu, const char *path);
|
||||
bool menu_database_realloc(menu_handle_t *menu, const char *path,
|
||||
bool force);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
@ -879,7 +879,7 @@ static int deferred_push_rdb_entry_detail(void *data, void *userdata,
|
||||
fill_pathname_join(path_rdl, g_settings.content_database, path_base,
|
||||
sizeof(path_rdl));
|
||||
|
||||
menu_database_realloc(driver.menu, path_rdl);
|
||||
menu_database_realloc(driver.menu, path_rdl, false);
|
||||
|
||||
playlist = driver.menu->db_playlist;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user