Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7261 in orxonox.OLD for trunk/src/lib/parser


Ignore:
Timestamp:
Mar 31, 2006, 10:19:55 AM (19 years ago)
Author:
rennerc
Message:

added audio commandline args

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/lib/parser/preferences/cmd_line_prefs_reader.cc

    r7258 r7261  
    146146 
    147147  arg.longOption = longOption;
     148  while ( arg.longOption.find("_") != std::string::npos )
     149  {
     150    arg.longOption.replace( arg.longOption.find("_"), 1, "-" );
     151  }
    148152  arg.shortOption = shortOption;
     153  if ( arg.shortOption == '_' )
     154    arg.shortOption = '\0';
    149155  arg.value = value;
    150156  arg.help = help;
Note: See TracChangeset for help on using the changeset viewer.