Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 4113 in orxonox.OLD for orxonox/trunk/src


Ignore:
Timestamp:
May 7, 2005, 7:42:48 PM (20 years ago)
Author:
bensch
Message:

orxonox/trunk: better output

Location:
orxonox/trunk/src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/game_loader.cc

    r4094 r4113  
    173173   this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns
    174174*/
    175 Campaign* GameLoader::fileToCampaign(char *name)
     175Campaign* GameLoader::fileToCampaign(const char *name)
    176176{
    177177  /* do not entirely load the campaign. just the current world
     
    182182  if( name == NULL)
    183183    {
    184       PRINTF0("No filename specified for loading");
     184      PRINTF(2)("No filename specified for loading");
    185185      return NULL;
    186186    }
     
    191191    {
    192192      // report an error
    193       PRINTF0("Error loading XML File: %s @ %d:%d\n", XMLDoc->ErrorDesc(), XMLDoc->ErrorRow(), XMLDoc->ErrorCol());
     193      PRINTF(1)("Could not load XML File %s: %s @ %d:%d\n", name, XMLDoc->ErrorDesc(), XMLDoc->ErrorRow(), XMLDoc->ErrorCol());
    194194      delete XMLDoc;
    195195      return NULL;
     
    203203    {
    204204      // report an error
    205       PRINTF(0)("Specified XML File is not an orxonox campaign file (Campaign element missing)\n");
     205      PRINTF(2)("Specified XML File is not an orxonox campaign file (Campaign element missing)\n");
    206206      delete XMLDoc;
    207207      return NULL;
  • orxonox/trunk/src/game_loader.h

    r4010 r4113  
    6464  Campaign* currentCampaign; //!> the current campaign playing
    6565 
    66   Campaign* fileToCampaign(char* name);
     66  Campaign* fileToCampaign(const char* name);
    6767
    6868  Factory* first;
  • orxonox/trunk/src/orxonox.cc

    r4094 r4113  
    108108  SDL_Init (SDL_INIT_TIMER);
    109109  // initialize everything
     110  printf("> Initializing resources\n");
     111  if( initResources () == -1) return -1;
     112
    110113  if( initVideo() == -1) return -1;
    111114  if( initSound() == -1) return -1;
     
    114117  printf("> Initializing networking\n");
    115118  if( initNetworking () == -1) return -1;
    116   printf("> Initializing resources\n");
    117   if( initResources () == -1) return -1;
    118119  //printf("> Initializing world\n");
    119120  //if( init_world () == -1) return -1; PB: world will be initialized when started
Note: See TracChangeset for help on using the changeset viewer.