Revert "(dir_list) Use string_is_equal_memcmp_fast"

This reverts commit c8ad747a46.
This commit is contained in:
twinaphex 2019-04-29 04:03:57 +02:00
parent c8ad747a46
commit bae73a0ccc

View File

@ -112,16 +112,13 @@ static int dir_list_read(const char *dir,
while (retro_readdir(entry))
{
size_t name_len;
union string_list_elem_attr attr;
char file_path[PATH_MAX_LENGTH];
const char *name = retro_dirent_get_name(entry);
const char *name = retro_dirent_get_name(entry);
if (!include_hidden && *name == '.')
continue;
name_len = strlen(name);
if ( string_is_equal_memcmp_fast(name, ".", name_len) ||
string_is_equal_memcmp_fast(name, "..", name_len))
if (!strcmp(name, ".") || !strcmp(name, ".."))
continue;
file_path[0] = '\0';