mirror of
https://github.com/libretro/RetroArch
synced 2025-03-28 19:20:35 +00:00
Fix crash - core_info_find has to come first
This commit is contained in:
parent
9fc1229bb1
commit
5b52dd4965
@ -78,8 +78,9 @@ static int menu_action_sublabel_file_browser_core(file_list_t *list, unsigned ty
|
||||
s[++_len] = '\0';
|
||||
|
||||
/* Search for specified core */
|
||||
if ( core_info->licenses_list
|
||||
&& core_info_find(path, &core_info))
|
||||
if (
|
||||
core_info_find(path, &core_info)
|
||||
&& core_info->licenses_list)
|
||||
{
|
||||
char tmp[MENU_SUBLABEL_MAX_LENGTH];
|
||||
tmp[0] = '\0';
|
||||
@ -122,7 +123,7 @@ static int menu_action_sublabel_contentless_core(file_list_t *list,
|
||||
if (playlist_show_sublabels)
|
||||
{
|
||||
/* Search for specified core */
|
||||
if ( !core_info_find(core_path, &core_info)
|
||||
if ( !core_info_find(core_path, &core_info)
|
||||
|| !core_info->supports_no_game)
|
||||
return 1;
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user