mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
minor improvements
This commit is contained in:
parent
a429a4a004
commit
792a400a3d
30 changed files with 1022 additions and 829 deletions
|
|
@ -20,14 +20,18 @@
|
|||
|
||||
|
||||
#include <QCoreApplication>
|
||||
#include "testserver.h"
|
||||
#include "server.h"
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
TestServer server;
|
||||
server.listen(QHostAddress::Any, 4747);
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
return app.exec();
|
||||
Server server;
|
||||
if (!server.openDatabase()) {
|
||||
qCritical("Database error");
|
||||
return -1;
|
||||
}
|
||||
server.listen(QHostAddress::Any, 4747);
|
||||
|
||||
return app.exec();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue