|
|
@ -390,12 +390,12 @@ int main(int argc, char**argv)
|
|
|
|
catch (std::exception &e)
|
|
|
|
catch (std::exception &e)
|
|
|
|
{
|
|
|
|
{
|
|
|
|
#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX || OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
|
|
|
#if OGRE_PLATFORM == OGRE_PLATFORM_LINUX || OGRE_PLATFORM == OGRE_PLATFORM_APPLE
|
|
|
|
if (isatty(fileno(stdin)))
|
|
|
|
if (!isatty(fileno(stdin)))
|
|
|
|
std::cerr << "\nERROR: " << e.what() << std::endl;
|
|
|
|
|
|
|
|
else
|
|
|
|
|
|
|
|
#endif
|
|
|
|
#endif
|
|
|
|
SDL_ShowSimpleMessageBox(0, "OpenMW: Fatal error", e.what(), NULL);
|
|
|
|
SDL_ShowSimpleMessageBox(0, "OpenMW: Fatal error", e.what(), NULL);
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
std::cerr << "\nERROR: " << e.what() << std::endl;
|
|
|
|
|
|
|
|
|
|
|
|
ret = 1;
|
|
|
|
ret = 1;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|