Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Apr 10, 2008, 6:08:32 PM (17 years ago)
Author:
landauf
Message:

console command 'loadSettings' works now: loads a new config file while playing orxonox.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/core2/src/orxonox/core/ConfigFileManager.cc

    r1025 r1026  
    2727
    2828#include "ConfigFileManager.h"
     29#include "ConfigValueContainer.h"
    2930#include "ConsoleCommand.h"
    3031#include "Identifier.h"
     
    401402        {
    402403            for (std::map<std::string, Identifier*>::const_iterator it = Identifier::getIdentifierMapBegin(); it != Identifier::getIdentifierMapEnd(); ++it)
     404            {
    403405                if ((*it).second->hasConfigValues() /* && (*it).second != ClassManager<KeyBinder>::getIdentifier()*/)
     406                {
     407                    for (std::map<std::string, ConfigValueContainer*>::const_iterator it2 = (*it).second->getConfigValueMapBegin(); it2 != (*it).second->getConfigValueMapEnd(); ++it2)
     408                        (*it2).second->update();
     409
    404410                    (*it).second->updateConfigValues();
     411                }
     412            }
    405413        }
    406414        else if (type == CFT_Keybindings)
Note: See TracChangeset for help on using the changeset viewer.