Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Changeset 7261 in orxonox.OLD for trunk/src


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

added audio commandline args

Location:
trunk/src
Files:
2 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;
  • trunk/src/orxonox.cc

    r7258 r7261  
    7878REGISTER_ARG_FLAG( w, windowed,   "video", "Fullscreen-mode",    "start Orxonox in windowed mode",   "0");
    7979REGISTER_ARG_ARG(  r, resolution, "video", "Resolution",         "Sets resolution / window size",    "res");
     80
     81REGISTER_ARG_FLAG( a, audio,      "audio", "Disable-Audio",      "Enable audio",                     "0" );
     82REGISTER_ARG_FLAG( m, mute ,      "audio", "Disable-Audio",      "Disable audio",                    "1" );
     83REGISTER_ARG_ARG(  _, audio_channels, "audio", "Audio-Channels", "Sets # audio channels", "num" );
     84REGISTER_ARG_ARG(  _, music_volume, "audio", "Music-Volume", "Sets music volume", "vol" );
     85REGISTER_ARG_ARG(  _, effects_volume, "audio", "Effects-Volume", "Sets effects volume", "vol" );
    8086
    8187/**
Note: See TracChangeset for help on using the changeset viewer.