Changeset 496 for code/branches/FICN/src/orxonox/main.cc
- Timestamp:
- Dec 12, 2007, 10:37:30 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/FICN/src/orxonox/main.cc
r473 r496 35 35 36 36 37 #include "core/SignalHandler.h" 37 38 #include "orxonox.h" 38 39 … … 66 67 #endif 67 68 68 #if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32 69 #define WIN32_LEAN_AND_MEAN 70 #include "windows.h" 71 72 INT WINAPI WinMain(HINSTANCE hInst, HINSTANCE, LPSTR strCmdLine, INT) 73 #else 74 75 int main(int argc, char **argv) 76 #endif 69 int main(int argc, char **argv) 77 70 { 78 71 try 79 72 { 73 SignalHandler::getInstance()->doCatch(argv[0], "orxonox.log"); 80 74 Orxonox* orx = Orxonox::getSingleton(); 81 75 #if OGRE_PLATFORM == OGRE_PLATFORM_APPLE … … 90 84 catch(Ogre::Exception& e) 91 85 { 92 #if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN3293 MessageBoxA(NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);94 #else95 86 fprintf(stderr, "An exception has occurred: %s\n", 96 87 e.getFullDescription().c_str()); 97 88 return 1; 98 #endif99 89 } 100 90
Note: See TracChangeset
for help on using the changeset viewer.