Changeset 4113 in orxonox.OLD for orxonox/trunk/src/game_loader.cc
- Timestamp:
- May 7, 2005, 7:42:48 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
orxonox/trunk/src/game_loader.cc
r4094 r4113 173 173 this will interprete the map/campaign files and recursivly load a tree of worlds/campaigns 174 174 */ 175 Campaign* GameLoader::fileToCampaign(c har *name)175 Campaign* GameLoader::fileToCampaign(const char *name) 176 176 { 177 177 /* do not entirely load the campaign. just the current world … … 182 182 if( name == NULL) 183 183 { 184 PRINTF 0("No filename specified for loading");184 PRINTF(2)("No filename specified for loading"); 185 185 return NULL; 186 186 } … … 191 191 { 192 192 // report an error 193 PRINTF 0("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()); 194 194 delete XMLDoc; 195 195 return NULL; … … 203 203 { 204 204 // 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"); 206 206 delete XMLDoc; 207 207 return NULL;
Note: See TracChangeset
for help on using the changeset viewer.