mirror of
https://github.com/CTCaer/RetroArch.git
synced 2025-03-04 17:39:53 +00:00
(menu_cbs_deferred_push.c) Refactor strcmp usage
This commit is contained in:
parent
6f657ccdeb
commit
77608c3bed
@ -15,6 +15,8 @@
|
||||
|
||||
#include <file/file_path.h>
|
||||
|
||||
#include <rhash.h>
|
||||
|
||||
#include "../menu.h"
|
||||
#include "../menu_hash.h"
|
||||
#include "../menu_displaylist.h"
|
||||
@ -642,7 +644,9 @@ int menu_cbs_init_bind_deferred_push(menu_file_list_cbs_t *cbs,
|
||||
|
||||
if (setting)
|
||||
{
|
||||
if (!strcmp(setting->parent_group, "Main Menu") && setting->type == ST_GROUP)
|
||||
uint32_t parent_group_hash = djb2_calculate(setting->parent_group);
|
||||
|
||||
if ((parent_group_hash == MENU_VALUE_MAIN_MENU) && setting->type == ST_GROUP)
|
||||
{
|
||||
if (!settings->menu.collapse_subgroups_enable)
|
||||
{
|
||||
|
Loading…
x
Reference in New Issue
Block a user