using namespace std;
-bool FileExists(std::string Filename){
+bool FileExists(std::string filename){
-#if defined (__WIN32__)
+#if defined (WIN32)
#else
- struct stat BuffData;
+ struct stat bufferData;
- if (stat(Filename.c_str(), &BuffData) == -1){
+ if (stat(filename.c_str(), &bufferData) == -1){
return false;
}
return true;
-}
\ No newline at end of file
+}
+
+#if defined (WIN32)
+
+bool FileExists(std::wstring filename) {
+
+ return PathFileExists(filename.c_str());
+
+}
+
+#endif
\ No newline at end of file