1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-07-22 17:18:39 +00:00

Player file directory must be only created when using file backend.

Also ensure on each player save that the directory exists
This commit is contained in:
Loïc Blot 2019-01-04 10:06:46 +01:00
parent cf224c9d6b
commit 0717719073
3 changed files with 8 additions and 4 deletions

View file

@ -29,7 +29,7 @@ with this program; if not, write to the Free Software Foundation, Inc.,
class PlayerDatabaseFiles : public PlayerDatabase
{
public:
PlayerDatabaseFiles(const std::string &savedir) : m_savedir(savedir) {}
PlayerDatabaseFiles(const std::string &savedir);
virtual ~PlayerDatabaseFiles() = default;
void savePlayer(RemotePlayer *player);