Skip to content
Snippets Groups Projects
Commit e797261e authored by Ivan Dokunov's avatar Ivan Dokunov
Browse files

bugFix cache + up version from 4.0 to 4.1

parent e53bb062
Branches
Tags version_X.4.1-dev
1 merge request!6Version X.7.0
......@@ -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
......
......@@ -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);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment