Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5225 in orxonox.OLD for trunk/src/orxonox.cc


Ignore:
Timestamp:
Sep 23, 2005, 10:07:20 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: removing some initialisation-stuff… i hope this works

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/orxonox.cc

    r5219 r5225  
    104104  delete[] this->configFileName;
    105105
     106  SDL_QuitSubSystem(SDL_INIT_TIMER);
    106107  ClassList::debug();
    107108
     
    172173
    173174  // initialize everything
    174   SDL_Init (SDL_INIT_TIMER);
     175  SDL_InitSubSystem (SDL_INIT_TIMER);
    175176  if( initResources () == -1) return -1;
    176177  if( initVideo() == -1) return -1;
     
    195196
    196197  char* iconName = ResourceManager::getFullName("pictures/fighter-top-32x32.bmp");
    197   GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, iconName);
    198   delete[] iconName;
     198  if (iconName != NULL)
     199  {
     200    GraphicsEngine::getInstance()->setWindowName(PACKAGE_NAME " " PACKAGE_VERSION, iconName);
     201    delete[] iconName;
     202  }
    199203  return 0;
    200204}
     
    206210{
    207211  PRINT(3)("> Initializing sound\n");
    208   // SDL_Init(SDL_INIT_AUDIO);
     212  // SDL_InitSubSystem(SDL_INIT_AUDIO);
    209213  SoundEngine::getInstance()->initAudio();
    210214
Note: See TracChangeset for help on using the changeset viewer.