Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Sep 12, 2010, 1:39:02 PM (14 years ago)
Author:
rgrieder
Message:

Sorted out application entry point.

File:
1 edited

Legend:

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

    r7421 r7423  
    3636#include "OrxonoxPrereqs.h"
    3737
     38#include <QApplication>
     39#include <QCoreApplication>
     40
    3841#include "core/Game.h"
    3942#include "Main.h"
     
    4548        Starting point of orxonox (however not the entry point of the program!)
    4649    */
    47     int main(const std::string& strCmdLine)
     50    int main(int argc, char** argv)
    4851    {
    49         Game* game = new Game(strCmdLine);
     52        QApplication app(argc, argv);
     53
     54        QCoreApplication::setOrganizationName("");
     55        QCoreApplication::setOrganizationDomain("");
     56        QCoreApplication::setApplicationName("");
    5057
    5158        //if (CommandLineParser::getValue("generateDoc").getString().empty())
    52         //    game->run();
    5359
    54         delete game;
    55 
    56         return 0;
     60        return app.exec();
     61        //return 0;
    5762    }
    5863}
Note: See TracChangeset for help on using the changeset viewer.