diff --git a/src/nvcore/FileSystem.cpp b/src/nvcore/FileSystem.cpp index ec87740..8d3bc33 100644 --- a/src/nvcore/FileSystem.cpp +++ b/src/nvcore/FileSystem.cpp @@ -4,7 +4,9 @@ #include #if NV_OS_WIN32 -#include +//#include // PathFileExists +#include // GetFileAttributes +#include // _mkdir #else #include #include @@ -20,6 +22,10 @@ bool FileSystem::exists(const char * path) return access(path, F_OK|R_OK) == 0; //struct stat buf; //return stat(path, &buf) == 0; +#elif NV_OS_WIN32 + // PathFileExists requires linking to shlwapi.lib + //return PathFileExists(path) != 0; + return GetFileAttributes(path) != 0xFFFFFFFF; #else if (FILE * fp = fopen(path, "r")) {