diff --git a/intl/msg_hash_us.h b/intl/msg_hash_us.h index da195b9b63..42bbe14e77 100644 --- a/intl/msg_hash_us.h +++ b/intl/msg_hash_us.h @@ -1294,6 +1294,10 @@ MSG_HASH( ) /* Core option category placeholders for icons */ +MSG_HASH( + MENU_ENUM_LABEL_VALUE_HACKS_SETTINGS, + "Hacks" + ) MSG_HASH( MENU_ENUM_LABEL_VALUE_MAPPING_SETTINGS, "Mapping" diff --git a/menu/drivers/ozone.c b/menu/drivers/ozone.c index 6720c22fff..181efe3c92 100644 --- a/menu/drivers/ozone.c +++ b/menu/drivers/ozone.c @@ -2140,14 +2140,14 @@ static uintptr_t ozone_entries_icon_get_texture( else if (string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS)) || string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SOUND_SETTINGS))) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_AUDIO]; - else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS))) + else if (string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS))) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_INPUT_SETTINGS]; else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONSCREEN_DISPLAY_SETTINGS))) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_OSD]; else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LATENCY_SETTINGS)) || string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TIMING_SETTINGS))) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_LATENCY]; - else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PERFORMANCE_SETTINGS))) + else if (string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PERFORMANCE_SETTINGS))) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_FRAMESKIP]; else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MEDIA_SETTINGS)) || string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_STORAGE_SETTINGS))) @@ -2155,6 +2155,8 @@ static uintptr_t ozone_entries_icon_get_texture( else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_SETTINGS)) || string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SPECS_SETTINGS))) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_DRIVERS]; + else if (strstr(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HACKS_SETTINGS))) + return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_POWER]; else if (strstr(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MAPPING_SETTINGS))) return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_OVERRIDE]; return ozone->icons_textures[OZONE_ENTRIES_ICONS_TEXTURE_CORE_OPTIONS]; diff --git a/menu/drivers/xmb.c b/menu/drivers/xmb.c index 9eb07376e5..908f81e54c 100644 --- a/menu/drivers/xmb.c +++ b/menu/drivers/xmb.c @@ -3283,14 +3283,14 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb, else if (string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_AUDIO_SETTINGS)) || string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SOUND_SETTINGS))) return xmb->textures.list[XMB_TEXTURE_AUDIO]; - else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS))) + else if (string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_INPUT_SETTINGS))) return xmb->textures.list[XMB_TEXTURE_INPUT_SETTINGS]; else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ONSCREEN_DISPLAY_SETTINGS))) return xmb->textures.list[XMB_TEXTURE_OSD]; else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_LATENCY_SETTINGS)) || string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_TIMING_SETTINGS))) return xmb->textures.list[XMB_TEXTURE_LATENCY]; - else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PERFORMANCE_SETTINGS))) + else if (string_starts_with(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_PERFORMANCE_SETTINGS))) return xmb->textures.list[XMB_TEXTURE_FRAMESKIP]; else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MEDIA_SETTINGS)) || string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_STORAGE_SETTINGS))) @@ -3298,6 +3298,8 @@ static uintptr_t xmb_icon_get_id(xmb_handle_t *xmb, else if (string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SYSTEM_SETTINGS)) || string_is_equal(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_SPECS_SETTINGS))) return xmb->textures.list[XMB_TEXTURE_DRIVERS]; + else if (strstr(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_HACKS_SETTINGS))) + return xmb->textures.list[XMB_TEXTURE_POWER]; else if (strstr(enum_path, msg_hash_to_str(MENU_ENUM_LABEL_VALUE_MAPPING_SETTINGS))) return xmb->textures.list[XMB_TEXTURE_OVERRIDE]; return xmb->textures.list[XMB_TEXTURE_CORE_OPTIONS]; diff --git a/msg_hash.h b/msg_hash.h index 77c147f4c5..ab3f3f81c8 100644 --- a/msg_hash.h +++ b/msg_hash.h @@ -2614,6 +2614,7 @@ enum msg_hash_enums MENU_LABEL(CHEAT_SEARCH_SETTINGS), /* Core option category placeholders for icons */ + MENU_LABEL(HACKS_SETTINGS), MENU_LABEL(MAPPING_SETTINGS), MENU_LABEL(MEDIA_SETTINGS), MENU_LABEL(PERFORMANCE_SETTINGS),