mirror of
https://github.com/libretro/RetroArch
synced 2025-04-10 15:45:19 +00:00
Create task_push_quick_menu
This commit is contained in:
parent
f8ed8ebde4
commit
383a5968cc
@ -1705,6 +1705,17 @@ static bool task_load_core(const char *core_path)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
static void task_push_quickmenu(enum content_mode_load mode, enum rarch_core_type type)
|
||||||
|
{
|
||||||
|
#ifdef HAVE_MENU
|
||||||
|
if (type != CORE_TYPE_DUMMY && mode != CONTENT_MODE_LOAD_FROM_CLI)
|
||||||
|
{
|
||||||
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUIT, NULL);
|
||||||
|
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUICK_MENU, NULL);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
}
|
||||||
|
|
||||||
bool task_push_content_load_default(
|
bool task_push_content_load_default(
|
||||||
const char *core_path,
|
const char *core_path,
|
||||||
const char *fullpath,
|
const char *fullpath,
|
||||||
@ -1842,13 +1853,7 @@ bool task_push_content_load_default(
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifdef HAVE_MENU
|
task_push_quickmenu(mode, type);
|
||||||
if (type != CORE_TYPE_DUMMY && mode != CONTENT_MODE_LOAD_FROM_CLI)
|
|
||||||
{
|
|
||||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUIT, NULL);
|
|
||||||
menu_driver_ctl(RARCH_MENU_CTL_SET_PENDING_QUICK_MENU, NULL);
|
|
||||||
}
|
|
||||||
#endif
|
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user