Merge pull request #7074 from RetroSven/master

bugfix: code and state not swapped
This commit is contained in:
Twinaphex 2018-08-14 20:04:56 +02:00 committed by GitHub
commit 135000a5f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)
);
}