1
0

Player saving creates the "players" folder, if needed.

Fixes #1268.
This commit is contained in:
Mattes D 2014-08-17 22:47:00 +02:00
parent 9522bd842e
commit 80559406f9

View File

@ -1842,6 +1842,7 @@ bool cPlayer::LoadFromFile(const AString & a_FileName, cWorldPtr & a_World)
bool cPlayer::SaveToDisk()
{
cFile::CreateFolder(FILE_IO_PREFIX + AString("players/")); // Create the "players" folder, if it doesn't exist yet (#1268)
cFile::CreateFolder(FILE_IO_PREFIX + AString("players/") + m_UUID.substr(0, 2));
// create the JSON data