Windows fixes.

This commit is contained in:
Scott Duensing 2023-11-26 21:18:16 -06:00
parent 4d325c447e
commit ddb280ad26
2 changed files with 10 additions and 5 deletions

View file

@ -890,7 +890,11 @@ void unpackGames(void) {
isFile = false;
if ((strcmp(de->d_name, ".") != 0) && (strcmp(de->d_name, "..") != 0)) {
if (stat(de->d_name, &fileStat) == 0) {
#ifdef _WIN32
if (S_ISREG(fileStat.st_mode)) {
#else
if (S_ISREG(fileStat.st_mode) || S_ISLNK(fileStat.st_mode)) {
#endif
isFile = true;
}
}

View file

@ -9,6 +9,7 @@
#include <string.h>
#if defined(WIN32)
#include <winsock2.h>
#include <windows.h>
#endif