mirror of
https://github.com/libretro/RetroArch
synced 2025-04-02 07:20:34 +00:00
rarch_update_system_info - simplify
This commit is contained in:
parent
95089ce7d1
commit
9efc11045d
26
retroarch.c
26
retroarch.c
@ -3283,39 +3283,23 @@ bool rarch_replace_config(const char *path)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
void rarch_update_system_info(struct retro_system_info *_info,
|
bool rarch_update_system_info(struct retro_system_info *_info,
|
||||||
bool *load_no_content)
|
bool *load_no_content)
|
||||||
{
|
{
|
||||||
const core_info_t *info = NULL;
|
|
||||||
#if defined(HAVE_DYNAMIC)
|
#if defined(HAVE_DYNAMIC)
|
||||||
libretro_free_system_info(_info);
|
libretro_free_system_info(_info);
|
||||||
if (!(*g_settings.libretro))
|
if (!(*g_settings.libretro))
|
||||||
return;
|
return false;
|
||||||
|
|
||||||
libretro_get_system_info(g_settings.libretro, _info,
|
libretro_get_system_info(g_settings.libretro, _info,
|
||||||
load_no_content);
|
load_no_content);
|
||||||
#endif
|
#endif
|
||||||
if (!g_extern.core_info)
|
if (!g_extern.core_info)
|
||||||
return;
|
return false;
|
||||||
|
|
||||||
if (!core_info_list_get_info(g_extern.core_info,
|
if (!core_info_list_get_info(g_extern.core_info,
|
||||||
g_extern.core_info_current, g_settings.libretro))
|
g_extern.core_info_current, g_settings.libretro))
|
||||||
return;
|
return false;
|
||||||
|
|
||||||
/* Keep track of info for the currently selected core. */
|
return true;
|
||||||
info = (const core_info_t*)g_extern.core_info_current;
|
|
||||||
|
|
||||||
if (!g_extern.verbosity)
|
|
||||||
return;
|
|
||||||
|
|
||||||
RARCH_LOG("[Core Info]:\n");
|
|
||||||
if (info->display_name)
|
|
||||||
RARCH_LOG("Display Name = %s\n", info->display_name);
|
|
||||||
if (info->supported_extensions)
|
|
||||||
RARCH_LOG("Supported Extensions = %s\n",
|
|
||||||
info->supported_extensions);
|
|
||||||
if (info->authors)
|
|
||||||
RARCH_LOG("Authors = %s\n", info->authors);
|
|
||||||
if (info->permissions)
|
|
||||||
RARCH_LOG("Permissions = %s\n", info->permissions);
|
|
||||||
}
|
}
|
||||||
|
@ -347,7 +347,7 @@ int rarch_defer_core(core_info_list_t *data,
|
|||||||
const char *dir, const char *path, const char *menu_label,
|
const char *dir, const char *path, const char *menu_label,
|
||||||
char *deferred_path, size_t sizeof_deferred_path);
|
char *deferred_path, size_t sizeof_deferred_path);
|
||||||
|
|
||||||
void rarch_update_system_info(struct retro_system_info *info,
|
bool rarch_update_system_info(struct retro_system_info *info,
|
||||||
bool *load_no_content);
|
bool *load_no_content);
|
||||||
|
|
||||||
#ifdef __cplusplus
|
#ifdef __cplusplus
|
||||||
|
Loading…
x
Reference in New Issue
Block a user