mirror of
https://github.com/libretro/RetroArch
synced 2025-03-31 10:20:41 +00:00
generic_action_ok_displaylist_push - reduce stack usage
This commit is contained in:
parent
e36c3b9a0b
commit
29114ffe29
@ -476,17 +476,15 @@ int generic_action_ok_displaylist_push(const char *path,
|
|||||||
case ACTION_OK_DL_PARENT_DIRECTORY_PUSH:
|
case ACTION_OK_DL_PARENT_DIRECTORY_PUSH:
|
||||||
{
|
{
|
||||||
char parent_dir[PATH_MAX_LENGTH];
|
char parent_dir[PATH_MAX_LENGTH];
|
||||||
char action_path[PATH_MAX_LENGTH];
|
|
||||||
|
|
||||||
parent_dir[0] = '\0';
|
parent_dir[0] = '\0';
|
||||||
action_path[0] = '\0';
|
|
||||||
|
|
||||||
if (path && menu_path)
|
if (path && menu_path)
|
||||||
fill_pathname_join(action_path,
|
fill_pathname_join(tmp,
|
||||||
menu_path, path, sizeof(action_path));
|
menu_path, path, sizeof(tmp));
|
||||||
|
|
||||||
fill_pathname_parent_dir(parent_dir,
|
fill_pathname_parent_dir(parent_dir,
|
||||||
action_path, sizeof(parent_dir));
|
tmp, sizeof(parent_dir));
|
||||||
fill_pathname_parent_dir(parent_dir,
|
fill_pathname_parent_dir(parent_dir,
|
||||||
parent_dir, sizeof(parent_dir));
|
parent_dir, sizeof(parent_dir));
|
||||||
|
|
||||||
@ -498,19 +496,15 @@ int generic_action_ok_displaylist_push(const char *path,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case ACTION_OK_DL_DIRECTORY_PUSH:
|
case ACTION_OK_DL_DIRECTORY_PUSH:
|
||||||
{
|
if (path && menu_path)
|
||||||
char action_path[PATH_MAX_LENGTH];
|
fill_pathname_join(tmp,
|
||||||
action_path[0] = '\0';
|
menu_path, path, sizeof(tmp));
|
||||||
if (path && menu_path)
|
|
||||||
fill_pathname_join(action_path,
|
|
||||||
menu_path, path, sizeof(action_path));
|
|
||||||
|
|
||||||
info.type = type;
|
info.type = type;
|
||||||
info.directory_ptr = idx;
|
info.directory_ptr = idx;
|
||||||
info_path = action_path;
|
info_path = tmp;
|
||||||
info_label = menu_label;
|
info_label = menu_label;
|
||||||
dl_type = DISPLAYLIST_GENERIC;
|
dl_type = DISPLAYLIST_GENERIC;
|
||||||
}
|
|
||||||
break;
|
break;
|
||||||
case ACTION_OK_DL_DATABASE_MANAGER_LIST:
|
case ACTION_OK_DL_DATABASE_MANAGER_LIST:
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user