@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); } }
@Override public _Setting get(IMachine machine) { return new ACPISetting(machine.getBIOSSettings().getACPIEnabled()); }
@Override public void set(IMachine machine, _Setting setting) { machine.getBIOSSettings().setACPIEnabled(((BooleanSetting) setting).getValue()); }
@Override public _Setting get(IMachine machine) { return new UsbEhciSetting(machine.getUSBControllerCountByType(USBControllerType.EHCI)); }