mirror of
https://github.com/libretro/RetroArch
synced 2025-01-31 06:32:48 +00:00
Don't pass driver.menu to menu_database_realloc
This commit is contained in:
parent
4bc117222b
commit
6a68b56e71
@ -54,9 +54,13 @@ 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(const char *path,
|
||||
bool force)
|
||||
{
|
||||
menu_handle_t *menu = menu_driver_resolve();
|
||||
if (!menu)
|
||||
return false;
|
||||
|
||||
if (!strcmp(menu->db_playlist_file, path) && !force)
|
||||
return true;
|
||||
|
||||
|
@ -32,7 +32,7 @@ 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(const char *path,
|
||||
bool force);
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
@ -1003,7 +1003,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, false);
|
||||
menu_database_realloc(path_rdl, false);
|
||||
|
||||
playlist = menu->db_playlist;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user