Fix savestate auto-index detection (#17351)
This commit is contained in:
parent
9c6e772497
commit
5399faaa9d
|
@ -1460,7 +1460,8 @@ static void scan_states(settings_t *settings,
|
||||||
if (string_is_empty(dir_elem))
|
if (string_is_empty(dir_elem))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
_len = fill_pathname_base(elem_base, dir_elem, sizeof(elem_base));
|
_len = strlen(dir_elem);
|
||||||
|
fill_pathname_base(elem_base, dir_elem, sizeof(elem_base));
|
||||||
|
|
||||||
/* Only consider files with a '.state' extension
|
/* Only consider files with a '.state' extension
|
||||||
* > i.e. Ignore '.state.auto', '.state.bak', etc. */
|
* > i.e. Ignore '.state.auto', '.state.bak', etc. */
|
||||||
|
|
Loading…
Reference in New Issue