فهرست منبع

Merge pull request #625 from dgough/next

 Fixed a bug in FileSystem::open when opening a WRITE stream on Windows.
Sean Paul Taylor 13 سال پیش
والد
کامیت
09e10e661e
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      gameplay/src/FileSystem.cpp

+ 1 - 1
gameplay/src/FileSystem.cpp

@@ -348,7 +348,7 @@ Stream* FileSystem::open(const char* path, size_t mode)
     
     
 #ifdef WIN32
 #ifdef WIN32
     gp_stat_struct s;
     gp_stat_struct s;
-    if (stat(fullPath.c_str(), &s) != 0)
+    if (stat(fullPath.c_str(), &s) != 0 && (mode & WRITE) == 0)
     {
     {
         fullPath = __resourcePath;
         fullPath = __resourcePath;
         fullPath += "../../gameplay/";
         fullPath += "../../gameplay/";