mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Merge pull request #7060 from RetroSven/master
reverse code/state display so that users can see at a glance which codes are active
This commit is contained in:
commit
a8dc7209b7
@ -690,21 +690,22 @@ static void menu_action_setting_disp_set_label_cheat(
|
||||
{
|
||||
if ( cheat_manager_state.cheats[cheat_index].handler == CHEAT_HANDLER_TYPE_EMU)
|
||||
{
|
||||
snprintf(s, len, "%s : (%s)",
|
||||
snprintf(s, len, "(%s) : %s",
|
||||
(cheat_manager_get_code(cheat_index) != NULL)
|
||||
? cheat_manager_get_code(cheat_index) :
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
|
||||
cheat_manager_get_code_state(cheat_index) ?
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ON) :
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF),
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE)
|
||||
);
|
||||
}
|
||||
else
|
||||
{
|
||||
snprintf(s, len, "%08X : (%s)", cheat_manager_state.cheats[cheat_index].address,
|
||||
snprintf(s, len, "(%s) : %08X",
|
||||
cheat_manager_get_code_state(cheat_index) ?
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_ON) :
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF)
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_OFF),
|
||||
cheat_manager_state.cheats[cheat_index].address
|
||||
);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user