Changeset 4113 in orxonox.OLD for orxonox/trunk/src
- Timestamp:
- May 7, 2005, 7:42:48 PM (20 years ago)
- Location:
- orxonox/trunk/src
- Files:
-
- 3 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; -
orxonox/trunk/src/game_loader.h
r4010 r4113 64 64 Campaign* currentCampaign; //!> the current campaign playing 65 65 66 Campaign* fileToCampaign(c har* name);66 Campaign* fileToCampaign(const char* name); 67 67 68 68 Factory* first; -
orxonox/trunk/src/orxonox.cc
r4094 r4113 108 108 SDL_Init (SDL_INIT_TIMER); 109 109 // initialize everything 110 printf("> Initializing resources\n"); 111 if( initResources () == -1) return -1; 112 110 113 if( initVideo() == -1) return -1; 111 114 if( initSound() == -1) return -1; … … 114 117 printf("> Initializing networking\n"); 115 118 if( initNetworking () == -1) return -1; 116 printf("> Initializing resources\n");117 if( initResources () == -1) return -1;118 119 //printf("> Initializing world\n"); 119 120 //if( init_world () == -1) return -1; PB: world will be initialized when started
Note: See TracChangeset
for help on using the changeset viewer.