mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
parent
ce5b0932f8
commit
914dbeaa0b
3 changed files with 122 additions and 1 deletions
|
@ -44,6 +44,9 @@ with this program; if not, write to the Free Software Foundation, Inc.,
|
|||
#if USE_POSTGRESQL
|
||||
#include "database/database-postgresql.h"
|
||||
#endif
|
||||
#if USE_LEVELDB
|
||||
#include "database/database-leveldb.h"
|
||||
#endif
|
||||
#include "server/luaentity_sao.h"
|
||||
#include "server/player_sao.h"
|
||||
|
||||
|
@ -2187,6 +2190,11 @@ AuthDatabase *ServerEnvironment::openAuthDatabase(
|
|||
if (name == "files")
|
||||
return new AuthDatabaseFiles(savedir);
|
||||
|
||||
#if USE_LEVELDB
|
||||
if (name == "leveldb")
|
||||
return new AuthDatabaseLevelDB(savedir);
|
||||
#endif
|
||||
|
||||
throw BaseException(std::string("Database backend ") + name + " not supported.");
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue