- Timestamp:
- Sep 6, 2005, 1:04:48 PM (20 years ago)
- Location:
- trunk/src
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell_command.cc
r5164 r5165 86 86 { 87 87 delete[] this->parameters; 88 } 89 90 void ShellCommandBase::unregisterAllCommands() 91 { 92 tIterator<ShellCommandBase>* iterator = ShellCommandBase::commandList->getIterator(); 93 ShellCommandBase* elem = iterator->firstElement(); 94 while(elem != NULL) 95 { 96 delete elem; 97 98 elem = iterator->nextElement(); 99 } 100 delete iterator; 101 102 delete ShellCommandBase::commandList; 103 ShellCommandBase::commandList = NULL; 104 } 105 106 107 void unregisterCommand(const char* commandName, const char* className) 108 { 109 PRINTF(1)("IMPLEMENT THIS\n"); 88 110 } 89 111 … … 223 245 if (this == NULL) 224 246 return NULL; 225 226 this->description = description; 227 return this; 228 } 229 247 else 248 { 249 this->description = description; 250 return this; 251 } 252 } 230 253 231 254 void ShellCommandBase::debugDyn() -
trunk/src/lib/shell/shell_command.h
r5164 r5165 39 39 static const tList<ShellCommandBase>* getCommandList() { return ShellCommandBase::commandList; }; 40 40 41 // static void unregisterCommand(const char* commandNaame, const char* className); 41 static void unregisterAllCommands(); 42 static void unregisterCommand(const char* commandNaame, const char* className); 42 43 43 44 static void debug(); -
trunk/src/orxonox.cc
r5158 r5165 31 31 #include "world.h" 32 32 #include "ini_parser.h" 33 #include "game_loader.h" 33 #include "game_loader.h" 34 34 35 35 //ENGINES … … 50 50 #include "substring.h" 51 51 #include "shell.h" 52 #include "shell_command.h" 52 53 53 54 #include <string.h> … … 91 92 delete GarbageCollector::getInstance(); 92 93 FastFactory::deleteAll(); 94 ShellCommandBase::unregisterAllCommands(); 93 95 94 96 delete EventHandler::getInstance();
Note: See TracChangeset
for help on using the changeset viewer.