Fix loading of lumps from directory on OS X

Use POSIX-compliant opendir() / readdir() functions instead fts_open() / fts_read()
Unlike Linux version, on OS X fts_read() inserts extra slash character between source directory and traversed entry paths
This commit is contained in:
alexey.lysiuk 2014-04-06 12:56:51 +03:00
parent 940794929c
commit 878dcdc0a4

View file

@ -198,7 +198,7 @@ int FDirectory::AddDirectory(const char *dirpath)
return count; return count;
} }
#elif defined(__sun) #elif defined(__sun) || defined(__APPLE__)
int FDirectory::AddDirectory(const char *dirpath) int FDirectory::AddDirectory(const char *dirpath)
{ {