main.cpp   main.cpp 
skipping to change at line 187 skipping to change at line 187
QStringList argList; QStringList argList;
for (int i=0; i<argc; ++i) for (int i=0; i<argc; ++i)
{ {
argList << argv[i]; argList << argv[i];
argStr += QString("%1 ").arg(argv[i]); argStr += QString("%1 ").arg(argv[i]);
} }
// Parse for first set of CLI arguments - stuff we want to process b efore other // Parse for first set of CLI arguments - stuff we want to process b efore other
// output, such as --help and --version // output, such as --help and --version
CLIProcessor::parseCLIArgsPreConfig(argList); CLIProcessor::parseCLIArgsPreConfig(argList);
#ifdef Q_OS_WIN
#if QT_VERSION >= 0x050300
if (qApp->property("onetime_angle_mode").isValid())
{
app.setAttribute(Qt::AA_UseOpenGLES, true);
}
#endif
#if QT_VERSION >= 0x050400
if (qApp->property("onetime_mesa_mode").isValid())
{
app.setAttribute(Qt::AA_UseSoftwareOpenGL, true);
}
#endif
#endif
// Start logging. // Start logging.
StelLogger::init(StelFileMgr::getUserDir()+"/log.txt"); StelLogger::init(StelFileMgr::getUserDir()+"/log.txt");
StelLogger::writeLog(argStr); StelLogger::writeLog(argStr);
// OK we start the full program. // OK we start the full program.
// Print the console splash and get on with loading the program // Print the console splash and get on with loading the program
QString versionLine = QString("This is %1 - http://www.stellarium.or g").arg(StelUtils::getApplicationName()); QString versionLine = QString("This is %1 - http://www.stellarium.or g").arg(StelUtils::getApplicationName());
QString copyrightLine = QString("Copyright (C) 2000-2014 Fabien Cher eau et al"); QString copyrightLine = QString("Copyright (C) %1 Fabien Chereau et al.").arg(COPYRIGHT_YEARS);
int maxLength = qMax(versionLine.size(), copyrightLine.size()); int maxLength = qMax(versionLine.size(), copyrightLine.size());
qDebug() << qPrintable(QString(" %1").arg(QString().fill('-', maxLen gth+2))); qDebug() << qPrintable(QString(" %1").arg(QString().fill('-', maxLen gth+2)));
qDebug() << qPrintable(QString("[ %1 ]").arg(versionLine.leftJustifi ed(maxLength, ' '))); qDebug() << qPrintable(QString("[ %1 ]").arg(versionLine.leftJustifi ed(maxLength, ' ')));
qDebug() << qPrintable(QString("[ %1 ]").arg(copyrightLine.leftJusti fied(maxLength, ' '))); qDebug() << qPrintable(QString("[ %1 ]").arg(copyrightLine.leftJusti fied(maxLength, ' ')));
qDebug() << qPrintable(QString(" %1").arg(QString().fill('-', maxLen gth+2))); qDebug() << qPrintable(QString(" %1").arg(QString().fill('-', maxLen gth+2)));
qDebug() << "Writing log file to:" << QDir::toNativeSeparators(StelL ogger::getLogFileName()); qDebug() << "Writing log file to:" << QDir::toNativeSeparators(StelL ogger::getLogFileName());
qDebug() << "File search paths:"; qDebug() << "File search paths:";
int n=0; int n=0;
foreach (const QString& i, StelFileMgr::getSearchPaths()) foreach (const QString& i, StelFileMgr::getSearchPaths())
{ {
 End of changes. 2 change blocks. 
1 lines changed or deleted 16 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/