Cleanup of #3255, fixes #3966.

Don't create an empty oos_logs directory when starting the game.
Rename getDateIndexSubdirectory to createDateIndexSubdirectory.
Add a comment for the breakpoint argument of CreateDirectories.

This was SVN commit r18183.
This commit is contained in:
elexis
2016-05-16 00:56:07 +00:00
parent 24b262e4d1
commit f4e69b7c07
6 changed files with 18 additions and 8 deletions
+1 -1
View File
@@ -196,7 +196,7 @@ Status tex_write(Tex* t, const VfsPath& filename)
/**
* Return an unused directory, based on date and index (for example 2016-02-09_0001)
*/
OsPath getDateIndexSubdirectory(const OsPath& parentDir)
OsPath createDateIndexSubdirectory(const OsPath& parentDir)
{
const std::time_t timestamp = std::time(nullptr);
const struct std::tm* now = std::localtime(&timestamp);