mirror of
https://github.com/libretro/RetroArch
synced 2025-03-29 22:20:21 +00:00
Fix regression with load archive
This commit is contained in:
parent
1523976d2c
commit
d89f268d98
@ -4314,6 +4314,9 @@ static int menu_cbs_init_bind_ok_compare_label(menu_file_list_cbs_t *cbs,
|
||||
{
|
||||
switch (hash)
|
||||
{
|
||||
case MENU_LABEL_FAVORITES:
|
||||
BIND_ACTION_OK(cbs, action_ok_push_content_list);
|
||||
break;
|
||||
case MENU_LABEL_REMAP_FILE_LOAD:
|
||||
BIND_ACTION_OK(cbs, action_ok_remap_file);
|
||||
break;
|
||||
@ -4430,14 +4433,18 @@ static int menu_cbs_init_bind_ok_compare_type(menu_file_list_cbs_t *cbs,
|
||||
BIND_ACTION_OK(cbs, action_ok_scan_file);
|
||||
#endif
|
||||
}
|
||||
else if (string_is_equal(menu_label,
|
||||
msg_hash_to_str(MENU_ENUM_LABEL_FAVORITES)))
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_compressed_archive_push_detect_core);
|
||||
}
|
||||
else
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_compressed_archive_push);
|
||||
switch (menu_label_hash)
|
||||
{
|
||||
case MENU_LABEL_FAVORITES:
|
||||
BIND_ACTION_OK(cbs,
|
||||
action_ok_compressed_archive_push_detect_core);
|
||||
break;
|
||||
default:
|
||||
BIND_ACTION_OK(cbs, action_ok_compressed_archive_push);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case FILE_TYPE_CORE:
|
||||
@ -4576,30 +4583,33 @@ static int menu_cbs_init_bind_ok_compare_type(menu_file_list_cbs_t *cbs,
|
||||
break;
|
||||
}
|
||||
}
|
||||
else if (string_is_equal(menu_label, msg_hash_to_str(MENU_ENUM_LABEL_FAVORITES)) ||
|
||||
string_is_equal(menu_label, msg_hash_to_str(MENU_ENUM_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST)) ||
|
||||
string_is_equal(menu_label, msg_hash_to_str(MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE))
|
||||
)
|
||||
{
|
||||
#ifdef HAVE_COMPRESSION
|
||||
if (type == FILE_TYPE_IN_CARCHIVE)
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_file_load_with_detect_core_carchive);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if (filebrowser_get_type() == FILEBROWSER_APPEND_IMAGE)
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_disk_image_append);
|
||||
}
|
||||
else
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_file_load_with_detect_core);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_file_load);
|
||||
switch (menu_label_hash)
|
||||
{
|
||||
case MENU_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST:
|
||||
case MENU_LABEL_FAVORITES:
|
||||
case MENU_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE:
|
||||
#ifdef HAVE_COMPRESSION
|
||||
if (type == FILE_TYPE_IN_CARCHIVE)
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_file_load_with_detect_core_carchive);
|
||||
}
|
||||
else
|
||||
#endif
|
||||
if (filebrowser_get_type() == FILEBROWSER_APPEND_IMAGE)
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_disk_image_append);
|
||||
}
|
||||
else
|
||||
{
|
||||
BIND_ACTION_OK(cbs, action_ok_file_load_with_detect_core);
|
||||
}
|
||||
break;
|
||||
default:
|
||||
BIND_ACTION_OK(cbs, action_ok_file_load);
|
||||
break;
|
||||
}
|
||||
}
|
||||
break;
|
||||
case FILE_TYPE_MOVIE:
|
||||
|
@ -1851,6 +1851,10 @@ enum msg_hash_enums
|
||||
#define MENU_LABEL_CONTENT_COLLECTION_LIST 0x32d1df83U
|
||||
#define MENU_LABEL_COLLECTION 0x5fea5991U
|
||||
|
||||
|
||||
#define MENU_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST 0xb4f82700U
|
||||
#define MENU_LABEL_FAVORITES 0x67325138U
|
||||
|
||||
/* Help */
|
||||
#define MENU_LABEL_INPUT_DRIVER_LINUXRAW 0xc33c6b9fU
|
||||
#define MENU_LABEL_INPUT_DRIVER_UDEV 0x7c9eeeb9U
|
||||
|
Loading…
x
Reference in New Issue
Block a user