From 3bf04c6034d4be7b5a46d4cb13235b0a3eb8b048 Mon Sep 17 00:00:00 2001 From: sonninnos <45124675+sonninnos@users.noreply.github.com> Date: Sun, 9 Feb 2025 07:11:21 +0200 Subject: [PATCH] GLUI: Fix null label icon (#17538) --- intl/msg_hash_lbl.h | 4 ++++ menu/drivers/materialui.c | 2 ++ 2 files changed, 6 insertions(+) diff --git a/intl/msg_hash_lbl.h b/intl/msg_hash_lbl.h index eecdf071e2..2f9bb361f0 100644 --- a/intl/msg_hash_lbl.h +++ b/intl/msg_hash_lbl.h @@ -1550,6 +1550,10 @@ MSG_HASH( MENU_ENUM_LABEL_DISK_OPTIONS, "core_disk_options" ) +MSG_HASH( + MENU_ENUM_LABEL_DISK_INDEX, + "core_disk_index" + ) MSG_HASH( MENU_ENUM_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST, "downloaded_file_detect_core_list" diff --git a/menu/drivers/materialui.c b/menu/drivers/materialui.c index 2815b542a6..5b44d28d60 100644 --- a/menu/drivers/materialui.c +++ b/menu/drivers/materialui.c @@ -10692,6 +10692,8 @@ static void materialui_list_insert(void *userdata, * switch */ break; default: + if (string_is_equal(label, "null")) + break; #ifdef HAVE_CHEEVOS if (type >= MENU_SETTINGS_CHEEVOS_START && type < MENU_SETTINGS_NETPLAY_ROOMS_START)