diff --git a/source/SkyXEngine.h b/source/SkyXEngine.h index 2ffe75ff421e04db7f8dfdbdf6de30c0a7e92a24..7625d492c4ac23e839048065734d852049545630 100644 --- a/source/SkyXEngine.h +++ b/source/SkyXEngine.h @@ -292,7 +292,7 @@ QT стиль документирования (!) и QT_AUTOBRIEF - корот #ifndef __SKYXENGINE_H #define __SKYXENGINE_H -#define SKYXENGINE_VERSION "X.4.0-dev" +#define SKYXENGINE_VERSION "X.4.1-dev" #define SKYXENGINE_VERSION4EDITORS "SkyXEngine version " ## SKYXENGINE_VERSION diff --git a/source/core/FileSystem.cpp b/source/core/FileSystem.cpp index a26a4cbadbd45b6e0496f603df87f3826b183c81..120eeab98fba9e5ca549fc1973d1fd82b213468f 100644 --- a/source/core/FileSystem.cpp +++ b/source/core/FileSystem.cpp @@ -444,7 +444,7 @@ IFile *CFileSystem::openFile(const char *szPath, FILE_OPEN_MODE mode = FILE_MODE String *newFileName; - if (!fullPath) + if (CHECK_CORRECT_PATH(fullPath)) { newFileName = new String(m_filePaths[m_writableRoot].c_str()); *newFileName += '/'; @@ -461,7 +461,7 @@ IFile *CFileSystem::openFile(const char *szPath, FILE_OPEN_MODE mode = FILE_MODE if (inRoot && !fileExists(fullPath)) { size_t len = strlen(fullPath) + 1; - char dirName[SIZE_PATH / 2]; + char dirName[SIZE_PATH]; memcpy(dirName, fullPath, len); dirname(dirName);