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:
parent
cf224c9d6b
commit
0717719073
3 changed files with 8 additions and 4 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue