Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 12, 2010, 2:48:11 PM (14 years ago)
Author:
rgrieder
Message:

Added CommandlineParser again and adjusted it to work with QVariant instead of MultiType.
Also removed obsolete Game class.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • sandbox_qt/src/orxonox/Main.cc

    r7423 r7424  
    3939#include <QCoreApplication>
    4040
    41 #include "core/Game.h"
     41#include "util/Debug.h"
     42#include "core/CommandlineParser.h"
     43#include "core/Core.h"
    4244#include "Main.h"
    4345
    4446namespace orxonox
    4547{
     48    SetCommandLineArgument(generateDoc, "")
     49        .information("Generates a Doxygen file from things like SetConsoleCommand");
     50
    4651    /**
    4752    @brief
     
    5257        QApplication app(argc, argv);
    5358
     59        QStringList arguments = QCoreApplication::arguments();
     60        if (!arguments.value(0).isEmpty() && arguments.value(0)[0] != '-')
     61            arguments.pop_front(); // Remove application path
     62        Core core(arguments.join(" ").toStdString());
     63
    5464        QCoreApplication::setOrganizationName("");
    5565        QCoreApplication::setOrganizationDomain("");
    5666        QCoreApplication::setApplicationName("");
    5767
    58         //if (CommandLineParser::getValue("generateDoc").getString().empty())
    59 
    60         return app.exec();
    61         //return 0;
     68        if (CommandLineParser::getValue("generateDoc").toString().isEmpty())
     69            return app.exec();
     70        else
     71            return 0;
    6272    }
    6373}
Note: See TracChangeset for help on using the changeset viewer.