mirror of
https://github.com/libretro/RetroArch
synced 2025-03-17 10:21:26 +00:00
Merge pull request #10118 from orbea/menu_null
Fix a segfault when starting the qt menu with the null menu driver.
This commit is contained in:
commit
d6e7ae3769
@ -1340,6 +1340,8 @@ bool menu_entries_append_enum(file_list_t *list, const char *path,
|
||||
size_t idx;
|
||||
const char *menu_path = NULL;
|
||||
menu_file_list_cbs_t *cbs = NULL;
|
||||
settings_t *settings = config_get_ptr();
|
||||
|
||||
if (!list || !label)
|
||||
return false;
|
||||
|
||||
@ -1377,7 +1379,8 @@ bool menu_entries_append_enum(file_list_t *list, const char *path,
|
||||
&& enum_idx != MENU_ENUM_LABEL_RDB_ENTRY)
|
||||
cbs->setting = menu_setting_find_enum(enum_idx);
|
||||
|
||||
menu_cbs_init(list, cbs, path, label, type, idx);
|
||||
if (!string_is_equal(settings->arrays.menu_driver, "null"))
|
||||
menu_cbs_init(list, cbs, path, label, type, idx);
|
||||
|
||||
return true;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user