Skip to content

Commit

Permalink
Win32: Filebrowser 'Show Hidden Files' corrections (#17140)
Browse files Browse the repository at this point in the history
  • Loading branch information
sonninnos authored Oct 31, 2024
1 parent 94f389a commit 8790178
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions libretro-common/lists/dir_list.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand All @@ -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"))
{
Expand Down

0 comments on commit 8790178

Please sign in to comment.