mirror of
https://github.com/libretro/RetroArch
synced 2025-02-06 09:40:06 +00:00
Make rarch_update_system_info static
This commit is contained in:
parent
817c4d3d91
commit
443b6e1ec8
41
retroarch.c
41
retroarch.c
@ -2134,6 +2134,27 @@ static bool save_core_config(void)
|
||||
return ret;
|
||||
}
|
||||
|
||||
static bool rarch_update_system_info(struct retro_system_info *_info,
|
||||
bool *load_no_content)
|
||||
{
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
libretro_free_system_info(_info);
|
||||
if (!(*g_settings.libretro))
|
||||
return false;
|
||||
|
||||
libretro_get_system_info(g_settings.libretro, _info,
|
||||
load_no_content);
|
||||
#endif
|
||||
if (!g_extern.core_info)
|
||||
return false;
|
||||
|
||||
if (!core_info_list_get_info(g_extern.core_info,
|
||||
g_extern.core_info_current, g_settings.libretro))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* rarch_main_command:
|
||||
* @cmd : Command index.
|
||||
@ -2971,23 +2992,3 @@ bool rarch_replace_config(const char *path)
|
||||
return true;
|
||||
}
|
||||
|
||||
bool rarch_update_system_info(struct retro_system_info *_info,
|
||||
bool *load_no_content)
|
||||
{
|
||||
#if defined(HAVE_DYNAMIC)
|
||||
libretro_free_system_info(_info);
|
||||
if (!(*g_settings.libretro))
|
||||
return false;
|
||||
|
||||
libretro_get_system_info(g_settings.libretro, _info,
|
||||
load_no_content);
|
||||
#endif
|
||||
if (!g_extern.core_info)
|
||||
return false;
|
||||
|
||||
if (!core_info_list_get_info(g_extern.core_info,
|
||||
g_extern.core_info_current, g_settings.libretro))
|
||||
return false;
|
||||
|
||||
return true;
|
||||
}
|
||||
|
@ -346,9 +346,6 @@ int rarch_defer_core(core_info_list_t *data,
|
||||
const char *dir, const char *path, const char *menu_label,
|
||||
char *deferred_path, size_t sizeof_deferred_path);
|
||||
|
||||
bool rarch_update_system_info(struct retro_system_info *info,
|
||||
bool *load_no_content);
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user