예제 #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));
 }