mirror of
https://github.com/libretro/RetroArch
synced 2025-02-20 15:40:44 +00:00
(Menu) Cut down on unused variables
This commit is contained in:
parent
e2aa4cda43
commit
aa386698b3
@ -1700,11 +1700,10 @@ static void menu_parse_and_resolve(unsigned menu_type)
|
||||
{
|
||||
char fill_buf[PATH_MAX];
|
||||
const char *path = NULL;
|
||||
const char *core_path = NULL;
|
||||
const char *core_name = NULL;
|
||||
|
||||
content_playlist_get_index(g_extern.history, i,
|
||||
&path, &core_path, &core_name);
|
||||
&path, NULL, &core_name);
|
||||
|
||||
if (path)
|
||||
{
|
||||
@ -1910,10 +1909,9 @@ static void menu_parse_and_resolve(unsigned menu_type)
|
||||
{
|
||||
char core_path[PATH_MAX], display_name[256];
|
||||
const char *path = NULL;
|
||||
const char *label = NULL;
|
||||
unsigned type = 0;
|
||||
|
||||
file_list_get_at_offset(list, i, &path, &label, &type);
|
||||
file_list_get_at_offset(list, i, &path, NULL, &type);
|
||||
if (type != MENU_FILE_PLAIN)
|
||||
continue;
|
||||
|
||||
|
@ -51,7 +51,8 @@ void content_playlist_get_index(content_playlist_t *playlist,
|
||||
return;
|
||||
|
||||
*path = playlist->entries[index].path;
|
||||
*core_path = playlist->entries[index].core_path;
|
||||
if (core_path)
|
||||
*core_path = playlist->entries[index].core_path;
|
||||
*core_name = playlist->entries[index].core_name;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user