Fixed "files" directory creation

Related to #444
master
krzys-h 2015-03-08 16:21:09 +01:00
parent 3c2b0a8206
commit f582b58c2e
1 changed files with 1 additions and 0 deletions

View File

@ -3245,6 +3245,7 @@ void PrepareFilename(CBotString &filename)
filename = filename.Mid(pos+1); // also removes the drive letter C:
}
boost::filesystem::create_directories(CScriptFunctions::m_filesDir);
filename = CBotString(CScriptFunctions::m_filesDir.c_str()) + CBotString("/") + filename;
CLogger::GetInstancePointer()->Debug("CBot accessing file '%s'\n", static_cast<const char*>(filename));
}