1
0
Fork 1
mirror of https://github.com/TES3MP/openmw-tes3mp.git synced 2025-03-30 09:36:43 +00:00

Merge remote-tracking branch 'ace/win-fix'

This commit is contained in:
Marc Zinnschlag 2013-12-06 15:17:34 +01:00
commit 48b779af80

View file

@ -282,9 +282,11 @@ 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 (isatty(fileno(stdin))) if (isatty(fileno(stdin)))
std::cerr << "\nERROR: " << e.what() << std::endl; std::cerr << "\nERROR: " << e.what() << std::endl;
else else
#endif
SDL_ShowSimpleMessageBox(0, "OpenMW: Fatal error", e.what(), NULL); SDL_ShowSimpleMessageBox(0, "OpenMW: Fatal error", e.what(), NULL);
return 1; return 1;