Simplify core_info_get_name

This commit is contained in:
twinaphex 2016-12-14 01:08:32 +01:00
parent c8b1aacefe
commit fb5c58d65f

View File

@ -633,13 +633,8 @@ void core_info_list_get_supported_cores(core_info_list_t *core_info_list,
void core_info_get_name(const char *path, char *s, size_t len) void core_info_get_name(const char *path, char *s, size_t len)
{ {
size_t i; size_t i;
struct string_list *contents = NULL;
settings_t *settings = config_get_ptr(); settings_t *settings = config_get_ptr();
struct string_list *contents = dir_list_new_special(
if (!settings)
return;
contents = dir_list_new_special(
settings->directory.libretro, settings->directory.libretro,
DIR_LIST_CORES, NULL); DIR_LIST_CORES, NULL);