[colobot] 267/390: Fixed "files" directory creation
Didier Raboud
odyx at moszumanska.debian.org
Fri Jun 12 14:21:53 UTC 2015
This is an automated email from the git hooks/post-receive script.
odyx pushed a commit to branch upstream/latest
in repository colobot.
commit f582b58c2e8d9bb09bf2a4492d653658b684d571
Author: krzys-h <krzys_h at interia.pl>
Date: Sun Mar 8 16:21:09 2015 +0100
Fixed "files" directory creation
Related to #444
---
src/script/scriptfunc.cpp | 1 +
1 file changed, 1 insertion(+)
diff --git a/src/script/scriptfunc.cpp b/src/script/scriptfunc.cpp
index 2399650..3fd3add 100644
--- a/src/script/scriptfunc.cpp
+++ b/src/script/scriptfunc.cpp
@@ -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));
}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/colobot.git
More information about the Pkg-games-commits
mailing list