Cleanups
This commit is contained in:
parent
bc323cc262
commit
2415373aaf
|
@ -397,15 +397,16 @@ static int rarch_defer_core_wrapper(size_t idx, size_t entry_idx, const char *pa
|
|||
|
||||
if (hash_label == MENU_LABEL_COLLECTION)
|
||||
{
|
||||
ret = generic_action_ok_displaylist_push(path,
|
||||
return generic_action_ok_displaylist_push(path,
|
||||
NULL, 0, idx, entry_idx, ACTION_OK_DL_DEFERRED_CORE_LIST_SET);
|
||||
}
|
||||
else
|
||||
|
||||
switch (ret)
|
||||
{
|
||||
case -1:
|
||||
event_command(EVENT_CMD_LOAD_CORE);
|
||||
return menu_common_load_content(false, CORE_TYPE_PLAIN);
|
||||
ret = menu_common_load_content(false, CORE_TYPE_PLAIN);
|
||||
break;
|
||||
case 0:
|
||||
ret = generic_action_ok_displaylist_push(path,
|
||||
NULL, 0, idx, entry_idx, ACTION_OK_DL_DEFERRED_CORE_LIST);
|
||||
|
@ -1005,8 +1006,7 @@ static int action_ok_file_load(const char *path,
|
|||
|
||||
if (setting && setting->type == ST_PATH)
|
||||
return action_ok_set_path(path, label, type, idx, entry_idx);
|
||||
else
|
||||
{
|
||||
|
||||
if (type == MENU_FILE_IN_CARCHIVE)
|
||||
fill_pathname_join_delim(global->path.fullpath, menu_path_new, path,
|
||||
'#',sizeof(global->path.fullpath));
|
||||
|
@ -1015,9 +1015,6 @@ static int action_ok_file_load(const char *path,
|
|||
sizeof(global->path.fullpath));
|
||||
|
||||
return menu_common_load_content(true, CORE_TYPE_PLAIN);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
|
@ -1694,13 +1691,8 @@ static int action_ok_help_load_content(const char *path,
|
|||
static int action_ok_video_resolution(const char *path,
|
||||
const char *label, unsigned type, size_t idx, size_t entry_idx)
|
||||
{
|
||||
unsigned width = 0, height = 0;
|
||||
global_t *global = global_get_ptr();
|
||||
|
||||
(void)global;
|
||||
(void)width;
|
||||
(void)height;
|
||||
|
||||
#ifdef __CELLOS_LV2__
|
||||
if (global->console.screen.resolutions.list[
|
||||
global->console.screen.resolutions.current.idx] ==
|
||||
|
@ -1717,6 +1709,9 @@ static int action_ok_video_resolution(const char *path,
|
|||
|
||||
event_command(EVENT_CMD_REINIT);
|
||||
#else
|
||||
unsigned width = 0;
|
||||
unsigned height = 0;
|
||||
|
||||
if (video_driver_get_video_output_size(&width, &height))
|
||||
{
|
||||
char msg[PATH_MAX_LENGTH] = {0};
|
||||
|
|
Loading…
Reference in New Issue