Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Aug 7, 2011, 10:51:54 PM (13 years ago)
Author:
landauf
Message:

added some output (user and internal) throughout the initialization of the game, graphics, and game states

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/output/src/Orxonox.cc

    r8812 r8830  
    6161    using namespace orxonox;
    6262
     63    orxout(user_status) << "Welcome to Orxonox (v" << ORXONOX_VERSION_MAJOR << '.' << ORXONOX_VERSION_MINOR << '.' << ORXONOX_VERSION_PATCH << ' ' << ORXONOX_VERSION_NAME << ')' << endl;
     64    orxout(internal_status) << "Congratulations, you survived the static initialization. Entering main()" << endl;
     65    if (argc > 0)
     66        orxout(internal_info) << "argv[0]: " << argv[0] << endl;
     67
    6368    try
    6469    {
     
    7883#endif
    7984
    80         return main(strCmdLine);
     85        int value = main(strCmdLine);
     86        orxout(internal_status) << "Terminating main() normally with value " << value << endl;
     87        return value;
    8188    }
    8289    catch (...)
    8390    {
    84         orxout(user_error) << "Orxonox failed to initialise: " << orxonox::Exception::handleMessage() << endl;
     91        orxout(user_error) << "Exception caught in main(): " << orxonox::Exception::handleMessage() << endl;
    8592        orxout(user_error) << "Terminating program." << endl;
    8693        return 1;
Note: See TracChangeset for help on using the changeset viewer.