Win32: Filebrowser 'Show Hidden Files' corrections (#17140)

This commit is contained in:
sonninnos 2024-10-31 02:56:47 +02:00 committed by GitHub
parent 94f389ae30
commit 8790178ae2
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -164,7 +164,7 @@ static int dir_list_read(const char *dir,
char file_path[PATH_MAX_LENGTH];
const char *name = retro_dirent_get_name(entry);
if (name[0] == '.')
if (name[0] == '.' || name[0] == '$')
{
/* Do not include hidden files and directories */
if (!include_hidden)
@ -185,10 +185,9 @@ static int dir_list_read(const char *dir,
if (retro_dirent_is_dir(entry, NULL))
{
/* Exclude this frequent hidden dir on platforms which can not handle hidden attribute */
#ifndef _WIN32
if (!include_hidden && strcmp(name, "System Volume Information") == 0)
continue;
#endif
#if defined(IOS) || defined(OSX)
if (string_ends_with(name, ".framework"))
{