summaryrefslogtreecommitdiffstats
path: root/src/skel/crossplatform.cpp
diff options
context:
space:
mode:
authoreray orçunus <erayorcunus@gmail.com>2020-10-11 04:25:15 +0200
committereray orçunus <erayorcunus@gmail.com>2020-10-12 19:22:39 +0200
commitd18a55f429cd1845d5b5e97b37a2b222ac888bb8 (patch)
tree6ffce0e4f8967c3a4ff77a3b8af4a173963f6bf2 /src/skel/crossplatform.cpp
parentMerge remote-tracking branch 'origin/master' into miami (diff)
downloadre3-d18a55f429cd1845d5b5e97b37a2b222ac888bb8.tar
re3-d18a55f429cd1845d5b5e97b37a2b222ac888bb8.tar.gz
re3-d18a55f429cd1845d5b5e97b37a2b222ac888bb8.tar.bz2
re3-d18a55f429cd1845d5b5e97b37a2b222ac888bb8.tar.lz
re3-d18a55f429cd1845d5b5e97b37a2b222ac888bb8.tar.xz
re3-d18a55f429cd1845d5b5e97b37a2b222ac888bb8.tar.zst
re3-d18a55f429cd1845d5b5e97b37a2b222ac888bb8.zip
Diffstat (limited to 'src/skel/crossplatform.cpp')
-rw-r--r--src/skel/crossplatform.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/skel/crossplatform.cpp b/src/skel/crossplatform.cpp
index 452ad9fa..697f9006 100644
--- a/src/skel/crossplatform.cpp
+++ b/src/skel/crossplatform.cpp
@@ -52,7 +52,7 @@ bool FindNextFile(HANDLE d, WIN32_FIND_DATA* finddata) {
while ((file = readdir((DIR*)d)) != NULL) {
// We only want "DT_REG"ular Files, but reportedly some FS and OSes gives DT_UNKNOWN as type.
- if ((file->d_type == DT_UNKNOWN || file->d_type == DT_REG) &&
+ if ((file->d_type == DT_UNKNOWN || file->d_type == DT_REG || file->d_type == DT_LNK) &&
(extensionLen == 0 || strncmp(&file->d_name[strlen(file->d_name) - extensionLen], finddata->extension, extensionLen) == 0)) {
sprintf(relativepath, "%s/%s", finddata->folder, file->d_name);