mirror of
https://github.com/libretro/RetroArch.git
synced 2024-11-27 18:20:27 +00:00
Use config_get_entry instead of config_get_array
This commit is contained in:
parent
8b1338dbb2
commit
38805da889
11
retroarch.c
11
retroarch.c
@ -27397,15 +27397,18 @@ static void input_config_parse_key(
|
|||||||
const char *prefix, const char *btn,
|
const char *prefix, const char *btn,
|
||||||
struct retro_keybind *bind)
|
struct retro_keybind *bind)
|
||||||
{
|
{
|
||||||
char tmp[64];
|
|
||||||
char key[64];
|
char key[64];
|
||||||
|
struct config_entry_list *entry = NULL;
|
||||||
|
|
||||||
tmp[0] = key[0] = '\0';
|
key[0] = '\0';
|
||||||
|
|
||||||
fill_pathname_join_delim(key, prefix, btn, '_', sizeof(key));
|
fill_pathname_join_delim(key, prefix, btn, '_', sizeof(key));
|
||||||
|
|
||||||
if (config_get_array(conf, key, tmp, sizeof(tmp)))
|
if (
|
||||||
bind->key = input_config_translate_str_to_rk(tmp);
|
(entry = config_get_entry(conf, key))
|
||||||
|
&& (!string_is_empty(entry->value))
|
||||||
|
)
|
||||||
|
bind->key = input_config_translate_str_to_rk(entry->value);
|
||||||
}
|
}
|
||||||
|
|
||||||
static const char *input_config_get_prefix(unsigned user, bool meta)
|
static const char *input_config_get_prefix(unsigned user, bool meta)
|
||||||
|
Loading…
Reference in New Issue
Block a user