Rewrote DB to use ORM, added all remaining features to LoginServer and refactored it

This commit is contained in:
kamilprzyb
2020-09-02 00:37:09 +02:00
parent 4f6c77be4f
commit 11801c1f89
18 changed files with 14108 additions and 23570 deletions

View File

@@ -7,6 +7,7 @@ int settings::VERBOSITY = 1;
int settings::LOGINPORT = 8001;
bool settings::LOGINRANDCHARACTERS = false;
bool settings::APPROVEALLNAMES = true;
int settings::SHARDPORT = 8002;
std::string settings::SHARDSERVERIP = "127.0.0.1";
@@ -35,6 +36,7 @@ void settings::init() {
return;
}
APPROVEALLNAMES = reader.GetInteger("", "acceptallcustomnames", APPROVEALLNAMES);
VERBOSITY = reader.GetInteger("", "verbosity", VERBOSITY);
LOGINPORT = reader.GetInteger("login", "port", LOGINPORT);
LOGINRANDCHARACTERS = reader.GetBoolean("login", "randomcharacters", LOGINRANDCHARACTERS);