mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
bugfix, more deck list submission code
This commit is contained in:
parent
fdf921e718
commit
7a07a395f1
10 changed files with 118 additions and 113 deletions
|
|
@ -28,13 +28,12 @@ Servatrice::Servatrice(QObject *parent)
|
|||
: Server(parent)
|
||||
{
|
||||
ProtocolItem::initializeHash();
|
||||
settings = new QSettings("servatrice.ini", QSettings::IniFormat, this);
|
||||
|
||||
tcpServer = new QTcpServer(this);
|
||||
connect(tcpServer, SIGNAL(newConnection()), this, SLOT(newConnection()));
|
||||
tcpServer->listen(QHostAddress::Any, 4747); // XXX make customizable
|
||||
tcpServer->listen(QHostAddress::Any, settings->value("server/port", 4747).toInt());
|
||||
|
||||
settings = new QSettings("servatrice.ini", QSettings::IniFormat, this);
|
||||
|
||||
QString dbType = settings->value("database/type").toString();
|
||||
if (dbType == "mysql")
|
||||
openDatabase();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue