Files
Cockatrice/oracle/src/main.cpp
2014-06-24 18:28:09 +02:00

29 lines
700 B
C++

#include <QApplication>
#include <QTextCodec>
#include "oraclewizard.h"
#include "settingscache.h"
SettingsCache *settingsCache;
int main(int argc, char *argv[])
{
QApplication app(argc, argv);
#if QT_VERSION < 0x050000
// gone in Qt5, all source files _MUST_ be utf8-encoded
QTextCodec::setCodecForCStrings(QTextCodec::codecForName("UTF-8"));
#endif
QCoreApplication::setOrganizationName("Cockatrice");
QCoreApplication::setOrganizationDomain("cockatrice");
// this can't be changed, as it influences the default savepath for cards.xml
QCoreApplication::setApplicationName("Cockatrice");
settingsCache = new SettingsCache;
OracleWizard wizard;
wizard.show();
return app.exec();
}