From e797261ed6f30a700cd76ee94d3b2c29a0db3eb0 Mon Sep 17 00:00:00 2001 From: Dokunov <vanya619@list.ru> Date: Mon, 30 Sep 2019 01:05:40 +0300 Subject: [PATCH] bugFix cache + up version from 4.0 to 4.1 --- source/SkyXEngine.h | 2 +- source/core/FileSystem.cpp | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/source/SkyXEngine.h b/source/SkyXEngine.h index 2ffe75ff4..7625d492c 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 a26a4cbad..120eeab98 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); -- GitLab