Пример #1
0
 @Override
 public void set(IMachine machine, _Setting setting) {
   if (!setting.getBoolean()
       && (machine.getUSBControllerCountByType(USBControllerType.EHCI) > 0)) {
     machine.removeUSBController(USBControllerType.EHCI.toString());
   } else {
     machine.addUSBController(USBControllerType.EHCI.toString(), USBControllerType.EHCI);
   }
 }
Пример #2
0
 @Override
 public _Setting get(IMachine machine) {
   return new ACPISetting(machine.getBIOSSettings().getACPIEnabled());
 }
Пример #3
0
 @Override
 public void set(IMachine machine, _Setting setting) {
   machine.getBIOSSettings().setACPIEnabled(((BooleanSetting) setting).getValue());
 }
Пример #4
0
 @Override
 public _Setting get(IMachine machine) {
   return new UsbEhciSetting(machine.getUSBControllerCountByType(USBControllerType.EHCI));
 }