This commit is contained in:
twinaphex 2020-06-05 18:17:31 +02:00
parent 110339c1cc
commit b8f5f22a87
2 changed files with 6 additions and 8 deletions

View File

@ -116,7 +116,6 @@ static int menu_cbs_init_bind_cancel_compare_type(
switch (cbs->enum_idx)
{
case MENU_ENUM_LABEL_CHEAT_IDX:
case MENU_ENUM_LABEL_CHEAT_STATE:
case MENU_ENUM_LABEL_CHEAT_DESC:
@ -142,14 +141,12 @@ static int menu_cbs_init_bind_cancel_compare_type(
case MENU_ENUM_LABEL_CHEAT_COPY_AFTER:
case MENU_ENUM_LABEL_CHEAT_COPY_BEFORE:
case MENU_ENUM_LABEL_CHEAT_DELETE:
{
BIND_ACTION_CANCEL(cbs, action_cancel_cheat_details);
break ;
}
{
BIND_ACTION_CANCEL(cbs, action_cancel_cheat_details);
break ;
}
default :
{
break ;
}
}
return -1;
}

View File

@ -901,7 +901,8 @@ static int menu_cbs_init_bind_deferred_push_compare_label(
* treatment, since the label has the format:
* <MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL>|<entry_name>
* i.e. cannot use a normal string_is_equal() */
if (string_starts_with(label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL)))
if (string_starts_with(label,
msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_RDB_ENTRY_DETAIL)))
{
BIND_ACTION_DEFERRED_PUSH(cbs, deferred_push_rdb_entry_detail);
}