mirror of
https://github.com/libretro/RetroArch
synced 2025-02-03 08:54:13 +00:00
menu_content_load - cleanup
This commit is contained in:
parent
22bf74ff37
commit
4381370f35
@ -99,7 +99,7 @@ static void menu_content_environment_get(int *argc, char *argv[],
|
||||
* Returns: true (1) if successful, otherwise false (0).
|
||||
**/
|
||||
|
||||
bool menu_content_load(enum rarch_core_type type)
|
||||
bool menu_content_load(void)
|
||||
{
|
||||
bool msg_force = true;
|
||||
char *fullpath = NULL;
|
||||
|
@ -36,7 +36,7 @@ extern "C" {
|
||||
*
|
||||
* Returns: true (1) if successful, otherwise false (0).
|
||||
**/
|
||||
bool menu_content_load(enum rarch_core_type type);
|
||||
bool menu_content_load(void);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
|
18
retroarch.c
18
retroarch.c
@ -1410,27 +1410,11 @@ bool rarch_ctl(enum rarch_ctl_state state, void *data)
|
||||
#endif
|
||||
break;
|
||||
case RARCH_CTL_LOAD_CONTENT:
|
||||
#ifdef HAVE_MENU
|
||||
/* If content loading fails, we go back to menu. */
|
||||
if (!menu_content_load(CORE_TYPE_PLAIN))
|
||||
rarch_ctl(RARCH_CTL_MENU_RUNNING, NULL);
|
||||
#endif
|
||||
frontend_driver_content_loaded();
|
||||
break;
|
||||
#ifdef HAVE_FFMPEG
|
||||
case RARCH_CTL_LOAD_CONTENT_FFMPEG:
|
||||
#ifdef HAVE_MENU
|
||||
/* If content loading fails, we go back to menu. */
|
||||
if (!menu_content_load(CORE_TYPE_FFMPEG))
|
||||
rarch_ctl(RARCH_CTL_MENU_RUNNING, NULL);
|
||||
#endif
|
||||
frontend_driver_content_loaded();
|
||||
break;
|
||||
#endif
|
||||
case RARCH_CTL_LOAD_CONTENT_IMAGEVIEWER:
|
||||
#ifdef HAVE_MENU
|
||||
/* If content loading fails, we go back to menu. */
|
||||
if (!menu_content_load(CORE_TYPE_IMAGEVIEWER))
|
||||
if (!menu_content_load())
|
||||
rarch_ctl(RARCH_CTL_MENU_RUNNING, NULL);
|
||||
#endif
|
||||
frontend_driver_content_loaded();
|
||||
|
Loading…
x
Reference in New Issue
Block a user