Changeset 7284 for code/trunk/src/libraries/core/GraphicsManager.cc
- Timestamp:
- Aug 31, 2010, 3:37:40 AM (15 years ago)
- Location:
- code/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
code/trunk
- Property svn:mergeinfo changed
-
code/trunk/src/libraries/core/GraphicsManager.cc
r6524 r7284 52 52 #include "util/StringUtils.h" 53 53 #include "util/SubString.h" 54 #include "ConsoleCommand.h"55 54 #include "ConfigValueIncludes.h" 56 55 #include "CoreIncludes.h" … … 62 61 #include "WindowEventListener.h" 63 62 #include "XMLFile.h" 63 #include "command/ConsoleCommand.h" 64 64 65 65 namespace orxonox 66 66 { 67 static const std::string __CC_printScreen_name = "printScreen"; 68 DeclareConsoleCommand(__CC_printScreen_name, &prototype::void__void); 69 67 70 class OgreWindowEventListener : public Ogre::WindowEventListener 68 71 { … … 131 134 132 135 Ogre::WindowEventUtilities::removeWindowEventListener(renderWindow_, ogreWindowEventListener_.get()); 133 // TODO: Destroy the console command136 ModifyConsoleCommand(__CC_printScreen_name).resetFunction(); 134 137 135 138 // Undeclare the resources … … 290 293 boost::filesystem::path folder(ogrePluginsDirectory_); 291 294 // Do some SubString magic to get the comma separated list of plugins 292 SubString plugins(ogrePlugins_, ",", " ", false, '\\', false, '"', false, ' (', ')', false, '\0');295 SubString plugins(ogrePlugins_, ",", " ", false, '\\', false, '"', false, '{', '}', false, '\0'); 293 296 // Use backslash paths on Windows! file_string() already does that though. 294 297 for (unsigned int i = 0; i < plugins.size(); ++i) … … 321 324 322 325 // add console commands 323 ccPrintScreen_ = createConsoleCommand(createFunctor(&GraphicsManager::printScreen, this), "printScreen"); 324 CommandExecutor::addConsoleCommandShortcut(ccPrintScreen_); 326 ModifyConsoleCommand(__CC_printScreen_name).setFunction(&GraphicsManager::printScreen, this); 325 327 } 326 328
Note: See TracChangeset
for help on using the changeset viewer.