diff --git a/frontend/frontend.c b/frontend/frontend.c index 538aabd2c1..0ed6bc4d18 100644 --- a/frontend/frontend.c +++ b/frontend/frontend.c @@ -121,8 +121,6 @@ static int main_entry_iterate_content(args_type() args) static int main_entry_iterate_load_content(args_type() args) { - load_menu_game_prepare(); - if (load_menu_game()) { g_extern.lifecycle_state |= (1ULL << MODE_GAME); diff --git a/frontend/menu/menu_common.c b/frontend/menu/menu_common.c index 2ab9051a7f..6d8950d0c3 100644 --- a/frontend/menu/menu_common.c +++ b/frontend/menu/menu_common.c @@ -99,7 +99,7 @@ void menu_content_history_push_current(void) g_extern.system.info.library_name); } -void load_menu_game_prepare(void) +static void load_menu_game_prepare(void) { if (!driver.menu) return; @@ -195,6 +195,8 @@ static void menu_environment_get(int *argc, char *argv[], void *args, void *para bool load_menu_game(void) { + load_menu_game_prepare(); + if (!(main_load_content(0, NULL, menu_environment_get, driver.frontend_ctx->process_args))) { diff --git a/frontend/menu/menu_common.h b/frontend/menu/menu_common.h index 37c8e8a149..5da9aa964b 100644 --- a/frontend/menu/menu_common.h +++ b/frontend/menu/menu_common.h @@ -103,7 +103,6 @@ void menu_free(void *data); void menu_ticker_line(char *buf, size_t len, unsigned tick, const char *str, bool selected); -void load_menu_game_prepare(void); bool load_menu_game(void); void load_menu_game_history(unsigned game_index); void menu_content_history_push_current(void);