mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Add description to cheat code if available
This commit is contained in:
parent
fdc1cf5422
commit
03f2421154
@ -1937,6 +1937,8 @@ static int deferred_push_core_cheat_options(void *data, void *userdata,
|
|||||||
{
|
{
|
||||||
char cheat_label[64];
|
char cheat_label[64];
|
||||||
snprintf(cheat_label, sizeof(cheat_label), "Cheat #%d: ", i);
|
snprintf(cheat_label, sizeof(cheat_label), "Cheat #%d: ", i);
|
||||||
|
if (cheat->cheats[i].desc)
|
||||||
|
strlcat(cheat_label, cheat->cheats[i].desc, sizeof(cheat_label));
|
||||||
menu_list_push(list, cheat_label, "", MENU_SETTINGS_CHEAT_BEGIN + i, 0);
|
menu_list_push(list, cheat_label, "", MENU_SETTINGS_CHEAT_BEGIN + i, 0);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user