Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 5015 in orxonox.OLD for orxonox/trunk/src/lib/event


Ignore:
Timestamp:
Aug 14, 2005, 5:25:53 PM (19 years ago)
Author:
bensch
Message:

orxonox/trunk: robust IniParser

File:
1 edited

Legend:

Unmodified
Added
Removed
  • orxonox/trunk/src/lib/event/key_mapper.cc

    r5014 r5015  
    128128  int* index;
    129129
    130   while(iniParser->nextVar())
     130  iniParser->getFirstVar();
     131  while(iniParser->getCurrentName())
    131132  {
    132133    PRINTF(3)("Keys: Parsing %s, %s now.\n", iniParser->getCurrentName(), iniParser->getCurrentValue());
    133134    index = nameToIndex (iniParser->getCurrentValue());
    134135    this->mapKeys(iniParser->getCurrentName(), index[1]);
     136    iniParser->nextVar();
    135137  }
    136138
     
    143145  }
    144146
    145   while( iniParser->nextVar())
     147  iniParser->getFirstVar();
     148  while(iniParser->getCurrentName())
    146149  {
    147150    PRINTF(3)("MISC: Parsing %s, %s now.\n", iniParser->getCurrentName(), iniParser->getCurrentValue());
    148151    index = nameToIndex (iniParser->getCurrentValue());
    149152    this->mapKeys(iniParser->getCurrentName(), index[1]);
     153    iniParser->nextVar();
    150154  }
    151155}
Note: See TracChangeset for help on using the changeset viewer.