mirror of
https://github.com/libretro/RetroArch
synced 2025-02-04 03:40:03 +00:00
Fix directory detection.
This commit is contained in:
parent
2dce493240
commit
ef206b3a27
2
file.c
2
file.c
@ -936,7 +936,7 @@ void dir_list_free(char **dir_list)
|
||||
bool path_is_directory(const char *path)
|
||||
{
|
||||
#ifdef _WIN32
|
||||
return GetFileAttributes(path) == FILE_ATTRIBUTE_DIRECTORY;
|
||||
return GetFileAttributes(path) & FILE_ATTRIBUTE_DIRECTORY;
|
||||
#elif defined(__CELLOS_LV2__) || defined(XENON)
|
||||
// Dummy
|
||||
(void)path;
|
||||
|
Loading…
x
Reference in New Issue
Block a user