diff --git a/src/Utils/IO.cpp b/src/Utils/IO.cpp index fa9eba97..b7ca7ff7 100644 --- a/src/Utils/IO.cpp +++ b/src/Utils/IO.cpp @@ -6,7 +6,8 @@ namespace Utils { bool FileExists(std::string file) { - return std::ifstream(file).good(); + //return std::ifstream(file).good(); + return GetFileAttributesA(file.data()) != INVALID_FILE_ATTRIBUTES; } bool WriteFile(std::string file, std::string data, bool append)