diff --git a/menu/menu.c b/menu/menu.c index e8a50d80be..3baa35f752 100644 --- a/menu/menu.c +++ b/menu/menu.c @@ -110,7 +110,15 @@ static void push_to_history_playlist(void) g_extern.menu.info.library_name); } -bool load_menu_content(void) +/** + * menu_load_content: + * + * Loads content into currently selected core. + * Will also optionally push the content entry to the history playlist. + * + * Returns: true (1) if successful, otherwise false (0). + **/ +bool menu_load_content(void) { if (*g_extern.fullpath || (driver.menu && driver.menu->load_no_content)) push_to_history_playlist(); diff --git a/menu/menu.h b/menu/menu.h index ae3b964d32..54311e027b 100644 --- a/menu/menu.h +++ b/menu/menu.h @@ -201,7 +201,15 @@ void menu_free(void *data); void menu_ticker_line(char *buf, size_t len, unsigned tick, const char *str, bool selected); -bool load_menu_content(void); +/** + * menu_load_content: + * + * Loads content into currently selected core. + * Will also optionally push the content entry to the history playlist. + * + * Returns: true (1) if successful, otherwise false (0). + **/ +bool menu_load_content(void); void menu_update_system_info(menu_handle_t *menu, bool *load_no_content); diff --git a/retroarch.c b/retroarch.c index fca3883917..b1bafc1459 100644 --- a/retroarch.c +++ b/retroarch.c @@ -2087,7 +2087,7 @@ void rarch_main_set_state(unsigned cmd) case RARCH_ACTION_STATE_LOAD_CONTENT: #ifdef HAVE_MENU /* If content loading fails, we go back to menu. */ - if (!load_menu_content()) + if (!menu_load_content()) rarch_main_set_state(RARCH_ACTION_STATE_MENU_RUNNING); #endif if (driver.frontend_ctx && driver.frontend_ctx->content_loaded)