Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Dec 12, 2007, 10:37:30 PM (16 years ago)
Author:
landauf
Message:

added files from objecthierarchy, changed includes

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/FICN/src/orxonox/main.cc

    r473 r496  
    3535
    3636
     37#include "core/SignalHandler.h"
    3738#include "orxonox.h"
    3839
     
    6667#endif
    6768
    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
     69int main(int argc, char **argv)
    7770{
    7871  try
    7972  {
     73    SignalHandler::getInstance()->doCatch(argv[0], "orxonox.log");
    8074    Orxonox* orx = Orxonox::getSingleton();
    8175#if OGRE_PLATFORM == OGRE_PLATFORM_APPLE
     
    9084  catch(Ogre::Exception& e)
    9185  {
    92 #if OGRE_PLATFORM == PLATFORM_WIN32 || OGRE_PLATFORM == OGRE_PLATFORM_WIN32
    93     MessageBoxA(NULL, e.getFullDescription().c_str(), "An exception has occurred!", MB_OK | MB_ICONERROR | MB_TASKMODAL);
    94 #else
    9586    fprintf(stderr, "An exception has occurred: %s\n",
    9687            e.getFullDescription().c_str());
    9788    return 1;
    98 #endif
    9989  }
    10090
Note: See TracChangeset for help on using the changeset viewer.