mirror of
https://github.com/libretro/RetroArch
synced 2025-03-26 02:37:23 +00:00
MOve menu_update_libretro_info to driver.c and make it a static function
This commit is contained in:
parent
d97b744b32
commit
0731e8c1fa
21
driver.c
21
driver.c
@ -335,6 +335,27 @@ bool driver_update_system_av_info(const struct retro_system_av_info *info)
|
|||||||
return true;
|
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:
|
* init_drivers:
|
||||||
* @flags : Bitmask of drivers to initialize.
|
* @flags : Bitmask of drivers to initialize.
|
||||||
|
21
menu/menu.c
21
menu/menu.c
@ -24,27 +24,6 @@
|
|||||||
#include "../../performance.h"
|
#include "../../performance.h"
|
||||||
#include <file/file_path.h>
|
#include <file/file_path.h>
|
||||||
|
|
||||||
/**
|
|
||||||
* 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[],
|
static void menu_environment_get(int *argc, char *argv[],
|
||||||
void *args, void *params_data)
|
void *args, void *params_data)
|
||||||
{
|
{
|
||||||
|
@ -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_apply_deferred_settings(void);
|
||||||
|
|
||||||
|
|
||||||
void menu_update_libretro_info(void);
|
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user