Changeset 3343 for code/branches/resource/src/core/Core.cc
- Timestamp:
- Jul 24, 2009, 4:25:33 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
code/branches/resource/src/core/Core.cc
r3323 r3343 68 68 #include "CoreIncludes.h" 69 69 #include "Factory.h" 70 #include "GameMode.h" 70 71 #include "Identifier.h" 71 72 #include "Language.h" … … 230 231 231 232 Core::Core(const std::string& cmdLine) 233 : bGraphicsLoaded_(false) 232 234 { 233 235 if (singletonRef_s != 0) … … 315 317 // Destroy command line arguments 316 318 CommandLine::destroyAllArguments(); 317 // Also delete external console command that don't belong to an Identifier319 // Also delete external console commands that don't belong to an Identifier 318 320 CommandExecutor::destroyExternalCommands(); 319 321 // Clean up class hierarchy stuff (identifiers, XMLPort, configValues, consoleCommand) … … 323 325 324 326 // Don't assign singletonRef_s with NULL! Recreation is not supported 327 } 328 329 void Core::loadGraphics() 330 { 331 if (bGraphicsLoaded_) 332 return; 333 334 GameMode::setShowsGraphics(true); 335 bGraphicsLoaded_ = true; 336 } 337 338 void Core::unloadGraphics() 339 { 340 if (!bGraphicsLoaded_) 341 return; 342 343 bGraphicsLoaded_ = false; 344 GameMode::setShowsGraphics(false); 325 345 } 326 346
Note: See TracChangeset
for help on using the changeset viewer.