mirror of
https://github.com/libretro/RetroArch
synced 2025-04-11 00:44:20 +00:00
Cleanups
This commit is contained in:
parent
3b0983cf97
commit
b55c17e7c5
@ -152,6 +152,22 @@ int generic_action_ok_displaylist_push(const char *path,
|
|||||||
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_USER_BINDS_LIST;
|
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_USER_BINDS_LIST;
|
||||||
break;
|
break;
|
||||||
case ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE:
|
case ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE:
|
||||||
|
if (menu)
|
||||||
|
{
|
||||||
|
menu_path = menu->scratch2_buf;
|
||||||
|
content_path = menu->scratch_buf;
|
||||||
|
}
|
||||||
|
if (content_path)
|
||||||
|
fill_pathname_join(detect_content_path, menu_path, content_path,
|
||||||
|
sizeof(detect_content_path));
|
||||||
|
|
||||||
|
info_label = menu_hash_to_str_enum(
|
||||||
|
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE);
|
||||||
|
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE;
|
||||||
|
info_path = path;
|
||||||
|
info.type = type;
|
||||||
|
info.directory_ptr = idx;
|
||||||
|
break;
|
||||||
case ACTION_OK_DL_OPEN_ARCHIVE:
|
case ACTION_OK_DL_OPEN_ARCHIVE:
|
||||||
if (menu)
|
if (menu)
|
||||||
{
|
{
|
||||||
@ -162,19 +178,9 @@ int generic_action_ok_displaylist_push(const char *path,
|
|||||||
fill_pathname_join(detect_content_path, menu_path, content_path,
|
fill_pathname_join(detect_content_path, menu_path, content_path,
|
||||||
sizeof(detect_content_path));
|
sizeof(detect_content_path));
|
||||||
|
|
||||||
switch (action_type)
|
info_label = menu_hash_to_str_enum(
|
||||||
{
|
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN);
|
||||||
case ACTION_OK_DL_OPEN_ARCHIVE_DETECT_CORE:
|
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN;
|
||||||
info_label = menu_hash_to_str_enum(
|
|
||||||
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE);
|
|
||||||
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN_DETECT_CORE;
|
|
||||||
break;
|
|
||||||
case ACTION_OK_DL_OPEN_ARCHIVE:
|
|
||||||
info_label = menu_hash_to_str_enum(
|
|
||||||
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN);
|
|
||||||
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_OPEN;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
info_path = path;
|
info_path = path;
|
||||||
info.type = type;
|
info.type = type;
|
||||||
info.directory_ptr = idx;
|
info.directory_ptr = idx;
|
||||||
@ -307,23 +313,25 @@ int generic_action_ok_displaylist_push(const char *path,
|
|||||||
info_label = label;
|
info_label = label;
|
||||||
break;
|
break;
|
||||||
case ACTION_OK_DL_COMPRESSED_ARCHIVE_PUSH_DETECT_CORE:
|
case ACTION_OK_DL_COMPRESSED_ARCHIVE_PUSH_DETECT_CORE:
|
||||||
|
info.type = type;
|
||||||
|
info.directory_ptr = idx;
|
||||||
|
info_path = path;
|
||||||
|
info_label = menu_hash_to_str_enum(
|
||||||
|
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE);
|
||||||
|
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE;
|
||||||
|
|
||||||
|
if (!string_is_empty(path))
|
||||||
|
strlcpy(menu->scratch_buf, path, sizeof(menu->scratch_buf));
|
||||||
|
if (!string_is_empty(menu_path))
|
||||||
|
strlcpy(menu->scratch2_buf, menu_path, sizeof(menu->scratch2_buf));
|
||||||
|
break;
|
||||||
case ACTION_OK_DL_COMPRESSED_ARCHIVE_PUSH:
|
case ACTION_OK_DL_COMPRESSED_ARCHIVE_PUSH:
|
||||||
info.type = type;
|
info.type = type;
|
||||||
info.directory_ptr = idx;
|
info.directory_ptr = idx;
|
||||||
info_path = path;
|
info_path = path;
|
||||||
switch (action_type)
|
info_label = menu_hash_to_str_enum(
|
||||||
{
|
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION);
|
||||||
case ACTION_OK_DL_COMPRESSED_ARCHIVE_PUSH_DETECT_CORE:
|
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION;
|
||||||
info_label = menu_hash_to_str_enum(
|
|
||||||
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE);
|
|
||||||
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION_DETECT_CORE;
|
|
||||||
break;
|
|
||||||
case ACTION_OK_DL_COMPRESSED_ARCHIVE_PUSH:
|
|
||||||
info_label = menu_hash_to_str_enum(
|
|
||||||
MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION);
|
|
||||||
info.enum_idx = MENU_ENUM_LABEL_DEFERRED_ARCHIVE_ACTION;
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (!string_is_empty(path))
|
if (!string_is_empty(path))
|
||||||
strlcpy(menu->scratch_buf, path, sizeof(menu->scratch_buf));
|
strlcpy(menu->scratch_buf, path, sizeof(menu->scratch_buf));
|
||||||
|
Loading…
x
Reference in New Issue
Block a user