mirror of
https://github.com/libretro/RetroArch
synced 2025-04-01 04:20:27 +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)
|
switch (hash)
|
||||||
{
|
{
|
||||||
|
case MENU_LABEL_FAVORITES:
|
||||||
|
BIND_ACTION_OK(cbs, action_ok_push_content_list);
|
||||||
|
break;
|
||||||
case MENU_LABEL_REMAP_FILE_LOAD:
|
case MENU_LABEL_REMAP_FILE_LOAD:
|
||||||
BIND_ACTION_OK(cbs, action_ok_remap_file);
|
BIND_ACTION_OK(cbs, action_ok_remap_file);
|
||||||
break;
|
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);
|
BIND_ACTION_OK(cbs, action_ok_scan_file);
|
||||||
#endif
|
#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
|
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;
|
break;
|
||||||
case FILE_TYPE_CORE:
|
case FILE_TYPE_CORE:
|
||||||
@ -4576,30 +4583,33 @@ static int menu_cbs_init_bind_ok_compare_type(menu_file_list_cbs_t *cbs,
|
|||||||
break;
|
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
|
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;
|
break;
|
||||||
case FILE_TYPE_MOVIE:
|
case FILE_TYPE_MOVIE:
|
||||||
|
@ -1851,6 +1851,10 @@ enum msg_hash_enums
|
|||||||
#define MENU_LABEL_CONTENT_COLLECTION_LIST 0x32d1df83U
|
#define MENU_LABEL_CONTENT_COLLECTION_LIST 0x32d1df83U
|
||||||
#define MENU_LABEL_COLLECTION 0x5fea5991U
|
#define MENU_LABEL_COLLECTION 0x5fea5991U
|
||||||
|
|
||||||
|
|
||||||
|
#define MENU_LABEL_DOWNLOADED_FILE_DETECT_CORE_LIST 0xb4f82700U
|
||||||
|
#define MENU_LABEL_FAVORITES 0x67325138U
|
||||||
|
|
||||||
/* Help */
|
/* Help */
|
||||||
#define MENU_LABEL_INPUT_DRIVER_LINUXRAW 0xc33c6b9fU
|
#define MENU_LABEL_INPUT_DRIVER_LINUXRAW 0xc33c6b9fU
|
||||||
#define MENU_LABEL_INPUT_DRIVER_UDEV 0x7c9eeeb9U
|
#define MENU_LABEL_INPUT_DRIVER_UDEV 0x7c9eeeb9U
|
||||||
|
Loading…
x
Reference in New Issue
Block a user