Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5335 in orxonox.OLD for trunk/src/lib/shell


Ignore:
Timestamp:
Oct 9, 2005, 1:27:58 AM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: more fool-proov loading of important paths (data and image)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/shell/shell.cc

    r5329 r5335  
    5656  this->setName("Shell");
    5757
    58   // register the shell at the ShellBuffer
    59   ShellBuffer::getInstance()->registerShell(this);
    6058  // EVENT-Handler subscription of '`' to all States.
    6159  EventHandler::getInstance()->subscribe(this, ES_ALL, SDLK_BACKQUOTE);
     
    8280
    8381  this->rebuildText();
     82
     83  // register the shell at the ShellBuffer
     84  ShellBuffer::getInstance()->registerShell(this);
    8485}
    8586
     
    8990Shell::~Shell ()
    9091{
     92  ShellBuffer::getInstance()->unregisterShell(this);
     93
    9194  // delete the displayable Buffers
    9295  for (unsigned int i = 0; i < this->bufferDisplaySize; i++)
     
    97100  // delete the inputLine
    98101  delete this->shellInput;
    99 
    100   ShellBuffer::getInstance()->unregisterShell(this);
    101102}
    102103
     
    158159void Shell::setFont(const char* fontFile)
    159160{
     161//   if (!ResourceManager::isInDataDir(fontFile))
     162//     return false;
     163
    160164  if (this->fontFile != NULL)
    161165    delete[] this->fontFile;
Note: See TracChangeset for help on using the changeset viewer.