Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Feb 12, 2011, 4:28:53 PM (14 years ago)
Author:
landauf
Message:

use exit() instead of abort() if the ogre config dialog was canceled by the user. avoids error/crash message.

Location:
code/trunk/src/libraries/core
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/libraries/core/Core.cc

    r7427 r7868  
    251251            graphicsManager_->upgradeToGraphics();
    252252        }
     253        catch (const InitialisationFailedException& e)
     254        {
     255            // Exit the application if the Ogre config dialog was canceled
     256            COUT(1) << Exception::handleMessage() << std::endl;
     257            exit(EXIT_FAILURE);
     258        }
    253259        catch (...)
    254260        {
     
    259265            // and reloaded between throw and catch (access violation in MSVC).
    260266            // That's why we abort completely and only display the exception.
    261             COUT(0) << "An exception occurred during upgrade to graphics. "
     267            COUT(1) << "An exception occurred during upgrade to graphics. "
    262268                    << "That is unrecoverable. The message was:" << endl
    263269                    << Exception::handleMessage() << endl;
  • code/trunk/src/libraries/core/GraphicsManager.cc

    r7284 r7868  
    305305        if (!ogreRoot_->restoreConfig())
    306306            if (!ogreRoot_->showConfigDialog())
    307                 ThrowException(InitialisationFailed, "OGRE graphics configuration dialogue failed.");
     307                ThrowException(InitialisationFailed, "OGRE graphics configuration dialogue canceled.");
    308308
    309309        CCOUT(4) << "Creating render window" << std::endl;
Note: See TracChangeset for help on using the changeset viewer.