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