1
0
mirror of https://github.com/libretro/RetroArch synced 2025-03-30 16:20:27 +00:00
This commit is contained in:
twinaphex 2017-10-05 05:23:54 +02:00
parent 032109512a
commit 9829019306

@ -375,11 +375,13 @@ void menu_entry_get(menu_entry_t *entry, size_t stack_idx,
entry->idx = (unsigned)i;
if (path && !use_representation)
if (!string_is_empty(path) && !use_representation)
strlcpy(newpath, path, sizeof(newpath));
else if (cbs && cbs->setting && cbs->setting->enum_value_idx != MSG_UNKNOWN
&& !cbs->setting->dont_use_enum_idx_representation)
strlcpy(newpath, msg_hash_to_str(cbs->setting->enum_value_idx), sizeof(newpath));
strlcpy(newpath,
msg_hash_to_str(cbs->setting->enum_value_idx),
sizeof(newpath));
if (!string_is_empty(newpath))
entry->path = strdup(newpath);