mirror of
https://github.com/libretro/RetroArch
synced 2025-01-30 21:32:45 +00:00
Merge pull request #7074 from RetroSven/master
bugfix: code and state not swapped
This commit is contained in:
commit
135000a5f3
@ -691,11 +691,11 @@ 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",
|
||||
(cheat_manager_get_code(cheat_index) != NULL)
|
||||
? cheat_manager_get_code(cheat_index) :
|
||||
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),
|
||||
(cheat_manager_get_code(cheat_index) != NULL)
|
||||
? cheat_manager_get_code(cheat_index) :
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE)
|
||||
);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user