Prechádzať zdrojové kódy

open file 's' fix flag

dmuratshin 9 rokov pred
rodič
commit
d23a8015ab

+ 3 - 0
oxygine/src/core/STDFileSystem.cpp

@@ -86,6 +86,9 @@ namespace oxygine
         int _openedFiles = 0;
         oxHandle* oxFileOpen(const char* filename, const char* mode)
         {
+            if (*mode == 's')
+                ++mode;
+            
             LOGD("oxFileOpen %s", filename);
             oxHandle* h = oxFileOpen_(filename, mode);
             if (h)

+ 0 - 2
oxygine/src/core/file.cpp

@@ -102,8 +102,6 @@ namespace oxygine
 
         handle open(const char* file_, const char* mode, error_policy ep)
         {
-            if (*mode == 's')
-                ++mode;
             
 #ifdef OX_DEBUG
             if (!strstr(mode, "b"))