mirror of
https://github.com/Cockatrice/Cockatrice.git
synced 2026-04-27 07:48:01 -07:00
Merge branch 'master' into Refactor-settings
Conflicts: oracle/CMakeLists.txt
This commit is contained in:
commit
baa61d0571
330 changed files with 37514 additions and 13448 deletions
|
|
@ -39,6 +39,7 @@
|
|||
#include "dlg_settings.h"
|
||||
#include "carddatabase.h"
|
||||
#include "settingscache.h"
|
||||
#include "thememanager.h"
|
||||
#include "pixmapgenerator.h"
|
||||
#include "rng_sfmt.h"
|
||||
#include "soundengine.h"
|
||||
|
|
@ -51,7 +52,7 @@ SettingsCache *settingsCache;
|
|||
RNG_Abstract *rng;
|
||||
SoundEngine *soundEngine;
|
||||
QSystemTrayIcon *trayIcon;
|
||||
|
||||
ThemeManager *themeManager;
|
||||
|
||||
const QString translationPrefix = "cockatrice";
|
||||
#ifdef TRANSLATION_PATH
|
||||
|
|
@ -146,6 +147,7 @@ int main(int argc, char *argv[])
|
|||
|
||||
rng = new RNG_SFMT;
|
||||
settingsCache = new SettingsCache;
|
||||
themeManager = new ThemeManager;
|
||||
db = new CardDatabase;
|
||||
|
||||
qtTranslator = new QTranslator;
|
||||
|
|
@ -213,13 +215,14 @@ int main(int argc, char *argv[])
|
|||
|
||||
if (settingsValid()) {
|
||||
qDebug("main(): starting main program");
|
||||
|
||||
soundEngine = new SoundEngine;
|
||||
qDebug("main(): SoundEngine constructor finished");
|
||||
|
||||
MainWindow ui;
|
||||
qDebug("main(): MainWindow constructor finished");
|
||||
|
||||
QIcon icon(":/resources/appicon.svg");
|
||||
QIcon icon("theme:cockatrice.svg");
|
||||
ui.setWindowIcon(icon);
|
||||
|
||||
settingsCache->setClientID(generateClientID());
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue