Changeset 5335 in orxonox.OLD for trunk/src/lib/shell
- Timestamp:
- Oct 9, 2005, 1:27:58 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/lib/shell/shell.cc
r5329 r5335 56 56 this->setName("Shell"); 57 57 58 // register the shell at the ShellBuffer59 ShellBuffer::getInstance()->registerShell(this);60 58 // EVENT-Handler subscription of '`' to all States. 61 59 EventHandler::getInstance()->subscribe(this, ES_ALL, SDLK_BACKQUOTE); … … 82 80 83 81 this->rebuildText(); 82 83 // register the shell at the ShellBuffer 84 ShellBuffer::getInstance()->registerShell(this); 84 85 } 85 86 … … 89 90 Shell::~Shell () 90 91 { 92 ShellBuffer::getInstance()->unregisterShell(this); 93 91 94 // delete the displayable Buffers 92 95 for (unsigned int i = 0; i < this->bufferDisplaySize; i++) … … 97 100 // delete the inputLine 98 101 delete this->shellInput; 99 100 ShellBuffer::getInstance()->unregisterShell(this);101 102 } 102 103 … … 158 159 void Shell::setFont(const char* fontFile) 159 160 { 161 // if (!ResourceManager::isInDataDir(fontFile)) 162 // return false; 163 160 164 if (this->fontFile != NULL) 161 165 delete[] this->fontFile;
Note: See TracChangeset
for help on using the changeset viewer.