Changeset 41371 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- May 21, 2012 3:23:40 PM (13 years ago)
- svn:sync-xref-src-repo-rev:
- 78064
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r40652 r41371 1606 1606 keyboardHidType(KeyboardHidType_PS2Keyboard), 1607 1607 chipsetType(ChipsetType_PIIX3), 1608 fEmulatedUSBCardReader(false), 1608 1609 clipboardMode(ClipboardMode_Bidirectional), 1609 1610 ulMemoryBalloonSize(0), … … 1668 1669 && (keyboardHidType == h.keyboardHidType) 1669 1670 && (chipsetType == h.chipsetType) 1671 && (fEmulatedUSBCardReader == h.fEmulatedUSBCardReader) 1670 1672 && (vrdeSettings == h.vrdeSettings) 1671 1673 && (biosSettings == h.biosSettings) … … 2820 2822 hw.pciAttachments.push_back(hpda); 2821 2823 } 2824 } 2825 } 2826 else if (pelmHwChild->nameEquals("EmulatedUSB")) 2827 { 2828 const xml::ElementNode *pelmCardReader; 2829 2830 if ((pelmCardReader = pelmHwChild->findChildElement("CardReader"))) 2831 { 2832 pelmCardReader->getAttributeValue("enabled", hw.fEmulatedUSBCardReader); 2822 2833 } 2823 2834 } … … 4042 4053 } 4043 4054 4055 if (m->sv >= SettingsVersion_v1_12) 4056 { 4057 xml::ElementNode *pelmEmulatedUSB = pelmHardware->createChild("EmulatedUSB"); 4058 xml::ElementNode *pelmCardReader = pelmEmulatedUSB->createChild("CardReader"); 4059 4060 pelmCardReader->setAttribute("enabled", hw.fEmulatedUSBCardReader); 4061 } 4062 4044 4063 xml::ElementNode *pelmGuest = pelmHardware->createChild("Guest"); 4045 4064 pelmGuest->setAttribute("memoryBalloonSize", hw.ulMemoryBalloonSize); … … 4648 4667 if (m->sv < SettingsVersion_v1_12) 4649 4668 { 4669 // 4.1: Emulated USB devices. 4670 if (hardwareMachine.fEmulatedUSBCardReader) 4671 m->sv = SettingsVersion_v1_12; 4672 } 4673 4674 if (m->sv < SettingsVersion_v1_12) 4675 { 4650 4676 // VirtualBox 4.1 adds PCI passthrough. 4651 4677 if (hardwareMachine.pciAttachments.size())
Note:
See TracChangeset
for help on using the changeset viewer.