Changed initial value of the parameter "enabled" to 1 for network, sound and
usb device plugins. Loading the plugin means that the user wants to enable it. Disabling the device on the command line and in the config interface is still possible.
This commit is contained in:
parent
e5ed796acf
commit
ae659d14fd
@ -220,7 +220,7 @@ void bx_init_usb_options(const char *usb_name, const char *pname, int maxports)
|
||||
menu->set_options(menu->SHOW_PARENT);
|
||||
sprintf(label, "Enable %s emulation", usb_name);
|
||||
sprintf(descr, "Enables the %s emulation", usb_name);
|
||||
bx_param_bool_c *enabled = new bx_param_bool_c(menu, "enabled", label, descr, 0);
|
||||
bx_param_bool_c *enabled = new bx_param_bool_c(menu, "enabled", label, descr, 1);
|
||||
bx_list_c *deplist = new bx_list_c(NULL);
|
||||
for (int i = 0; i < maxports; i++) {
|
||||
sprintf(name, "port%d", i+1);
|
||||
|
@ -296,7 +296,7 @@ void e1000_init_options(void)
|
||||
"enabled",
|
||||
"Enable Intel(R) Gigabit Ethernet emulation",
|
||||
"Enables the Intel(R) Gigabit Ethernet emulation",
|
||||
0);
|
||||
1);
|
||||
SIM->init_std_nic_options("Intel(R) Gigabit Ethernet", menu);
|
||||
enabled->set_dependent_list(menu->clone());
|
||||
}
|
||||
|
@ -59,7 +59,7 @@ void ne2k_init_options(void)
|
||||
"enabled",
|
||||
"Enable NE2K NIC emulation",
|
||||
"Enables the NE2K NIC emulation",
|
||||
0);
|
||||
1);
|
||||
bx_param_num_c *ioaddr = new bx_param_num_c(menu,
|
||||
"ioaddr",
|
||||
"NE2K I/O Address",
|
||||
@ -76,7 +76,6 @@ void ne2k_init_options(void)
|
||||
irq->set_options(irq->USE_SPIN_CONTROL);
|
||||
SIM->init_std_nic_options("NE2K", menu);
|
||||
enabled->set_dependent_list(menu->clone());
|
||||
|
||||
}
|
||||
|
||||
Bit32s ne2k_options_parser(const char *context, int num_params, char *params[])
|
||||
|
@ -2,8 +2,8 @@
|
||||
// $Id$
|
||||
/////////////////////////////////////////////////////////////////////////
|
||||
//
|
||||
// Copyright (C) 2003 Fen Systems Ltd.
|
||||
// http://www.fensystems.co.uk/
|
||||
// Copyright (C) 2003 Fen Systems Ltd. (http://www.fensystems.co.uk/)
|
||||
// Copyright (C) 2003-2013 The Bochs Project
|
||||
//
|
||||
// This library is free software; you can redistribute it and/or
|
||||
// modify it under the terms of the GNU Lesser General Public
|
||||
@ -50,7 +50,7 @@ void pnic_init_options(void)
|
||||
"enabled",
|
||||
"Enable Pseudo NIC emulation",
|
||||
"Enables the Pseudo NIC emulation",
|
||||
0);
|
||||
1);
|
||||
SIM->init_std_nic_options("Pseudo NIC", menu);
|
||||
enabled->set_dependent_list(menu->clone());
|
||||
}
|
||||
|
@ -111,7 +111,7 @@ void es1370_init_options(void)
|
||||
"enabled",
|
||||
"Enable ES1370 emulation",
|
||||
"Enables the ES1370 emulation",
|
||||
0);
|
||||
1);
|
||||
enabled->set_enabled(BX_SUPPORT_ES1370);
|
||||
|
||||
bx_param_enum_c *wavemode = new bx_param_enum_c(menu,
|
||||
|
@ -59,7 +59,7 @@ void sb16_init_options(void)
|
||||
"enabled",
|
||||
"Enable SB16 emulation",
|
||||
"Enables the SB16 emulation",
|
||||
0);
|
||||
1);
|
||||
bx_param_num_c *midimode = new bx_param_num_c(menu,
|
||||
"midimode",
|
||||
"Midi mode",
|
||||
|
Loading…
Reference in New Issue
Block a user