diff --git a/driver.c b/driver.c index 5f9ddb36fa..15b4e67bd5 100644 --- a/driver.c +++ b/driver.c @@ -335,6 +335,27 @@ bool driver_update_system_av_info(const struct retro_system_av_info *info) return true; } +/** + * menu_update_libretro_info: + * + * Update menu state which depends on config. + **/ +static void menu_update_libretro_info(void) +{ + global_t *global = global_get_ptr(); + struct retro_system_info *info = global ? &global->menu.info : NULL; + + if (!global || !info) + return; + +#ifndef HAVE_DYNAMIC + retro_get_system_info(info); +#endif + + event_command(EVENT_CMD_CORE_INFO_INIT); + event_command(EVENT_CMD_LOAD_CORE_PERSIST); +} + /** * init_drivers: * @flags : Bitmask of drivers to initialize. diff --git a/menu/menu.c b/menu/menu.c index 380685e86a..8dd5ecad0e 100644 --- a/menu/menu.c +++ b/menu/menu.c @@ -24,27 +24,6 @@ #include "../../performance.h" #include -/** - * menu_update_libretro_info: - * - * Update menu state which depends on config. - **/ -void menu_update_libretro_info(void) -{ - global_t *global = global_get_ptr(); - struct retro_system_info *info = global ? &global->menu.info : NULL; - - if (!global || !info) - return; - -#ifndef HAVE_DYNAMIC - retro_get_system_info(info); -#endif - - event_command(EVENT_CMD_CORE_INFO_INIT); - event_command(EVENT_CMD_LOAD_CORE_PERSIST); -} - static void menu_environment_get(int *argc, char *argv[], void *args, void *params_data) { diff --git a/menu/menu.h b/menu/menu.h index a2aec0b195..617e13d61a 100644 --- a/menu/menu.h +++ b/menu/menu.h @@ -198,9 +198,6 @@ void menu_update_system_info(menu_handle_t *menu, bool *load_no_content); void menu_apply_deferred_settings(void); - -void menu_update_libretro_info(void); - #ifdef __cplusplus } #endif