final ports and first fixes
This commit is contained in:
1 parent
77690cbd96
commit
6f3556009a
23 files changed
+2302
-41
No files matched your search
@@ -26,9 +26,14 @@
|
||||
// The fact that you are presently reading this means that you have had
|
||||
// knowledge of the CeCILL license and that you accept its terms.
|
||||
|
||||
#include "game/Direct.h"
|
||||
#include "game/GameServer.h"
|
||||
#include <QDebug>
|
||||
#include "game/Global.h"
|
||||
#include "game/Start.h"
|
||||
|
||||
#include <QApplication>
|
||||
#include <QTimer>
|
||||
#include <QLocale>
|
||||
#include <QTranslator>
|
||||
|
||||
@@ -38,6 +43,7 @@ int main(int argc, char *argv[])
|
||||
QCoreApplication::setOrganizationName(QStringLiteral("c-evo-evo"));
|
||||
QCoreApplication::setApplicationName(QStringLiteral("c-evo-evo"));
|
||||
Cevo::initDirectories(QCoreApplication::arguments());
|
||||
Cevo::loadConfig();
|
||||
Cevo::loadAssets();
|
||||
|
||||
QTranslator translator;
|
||||
@@ -49,5 +55,15 @@ int main(int argc, char *argv[])
|
||||
break;
|
||||
}
|
||||
}
|
||||
|
||||
// DirectDlg (created first, as in the original) is the main window; it
|
||||
// shows the start screen once the game engine is up.
|
||||
Cevo::DirectDlg direct;
|
||||
Cevo::StartDlg start(&direct);
|
||||
direct.setStartDlg(&start);
|
||||
direct.show();
|
||||
QTimer::singleShot(2000, [] { for (int i = 0; i < Cevo::GameServer::brains.count(); ++i) qWarning() << "BRAIN" << i << Cevo::GameServer::brains[i].fileName << Cevo::GameServer::brains[i].name() << int(Cevo::GameServer::brains[i].kind) << Cevo::GameServer::brains[i].beginner; }); // TEMP-GRAB
|
||||
QTimer::singleShot(2500, [&start] { start.grab().save(QStringLiteral("/tmp/start-shot.png")); }); // TEMP-GRAB
|
||||
QTimer::singleShot(3000, [] { QCoreApplication::quit(); }); // TEMP-GRAB
|
||||
return a.exec();
|
||||
}
|
||||
Reference in new issue
Block a user