@@ -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)
@@ -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"))