Added --no-extra-devices back

This commit is contained in:
Ingo Ruhnke 2011-01-25 05:29:39 +01:00
parent 31774153c0
commit e5895d4a25

View file

@ -309,6 +309,7 @@ CommandLineParser::init_ini(Options* opts)
("timeout", &opts->timeout)
("next", boost::bind(&Options::next_config, boost::ref(opts)), boost::function<void ()>())
("next-controller", boost::bind(&Options::next_controller, boost::ref(opts)), boost::function<void ()>())
("extra-devices", &opts->extra_devices)
("deadzone", boost::bind(&CommandLineParser::set_deadzone, this, _1))
("deadzone-trigger", boost::bind(&CommandLineParser::set_deadzone_trigger, this, _1))
@ -661,6 +662,10 @@ CommandLineParser::parse_args(int argc, char** argv, Options* options)
opts.led = boost::lexical_cast<int>(opt.argument);
}
break;
case OPTION_NO_EXTRA_DEVICES:
opts.extra_devices = false;
break;
case OPTION_DPAD_ONLY:
opts.set_dpad_only();