mirror of
https://github.com/libretro/RetroArch
synced 2025-03-02 19:13:34 +00:00
core_info_list_iterate - use config_file_from_string
This commit is contained in:
parent
f73e4e9af8
commit
319e708738
11
core_info.c
11
core_info.c
@ -225,7 +225,16 @@ static config_file_t *core_info_list_iterate(
|
||||
info_path_base = NULL;
|
||||
|
||||
if (path_is_valid(info_path))
|
||||
conf = config_file_new(info_path);
|
||||
{
|
||||
int64_t length = 0;
|
||||
uint8_t *ret_buf = NULL;
|
||||
if (filestream_read_file(info_path, (void**)&ret_buf, &length))
|
||||
{
|
||||
if (length >= 0)
|
||||
conf = config_file_new_from_string((const char*)ret_buf);
|
||||
free((void*)ret_buf);
|
||||
}
|
||||
}
|
||||
free(info_path);
|
||||
|
||||
return conf;
|
||||
|
@ -328,7 +328,6 @@ static bool input_autoconfigure_joypad_from_conf_dir(
|
||||
int current_best = 0;
|
||||
config_file_t *best_conf = NULL;
|
||||
struct string_list *list = NULL;
|
||||
struct retro_perf_counter perf;
|
||||
|
||||
best_path[0] = '\0';
|
||||
path[0] = '\0';
|
||||
|
Loading…
x
Reference in New Issue
Block a user