Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

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


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

orxonox/trunk: better output

File:
1 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;
Note: See TracChangeset for help on using the changeset viewer.