VirtualBox

Changeset 23179 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
Sep 21, 2009 11:23:12 AM (16 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
52603
Message:

Main: firmware type setter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r22866 r23179  
    954954          fAccelerate3D(false),
    955955          fAccelerate2DVideo(false),
     956          cFirmwareType(FirmwareType_Bios),
    956957          clipboardMode(ClipboardMode_Bidirectional),
    957958          ulMemoryBalloonSize(0),
     
    12031204        else if (pelmHwChild->nameEquals("Memory"))
    12041205            pelmHwChild->getAttributeValue("RAMSize", hw.ulMemorySizeMB);
     1206        else if (pelmHwChild->nameEquals("Firmware"))
     1207            pelmHwChild->getAttributeValue("type", hw.cFirmwareType);
    12051208        else if (pelmHwChild->nameEquals("Boot"))
    12061209        {
     
    18331836    pelmMemory->setAttribute("RAMSize", hw.ulMemorySizeMB);
    18341837
     1838    if (m->sv >= SettingsVersion_v1_8)
     1839    {
     1840         xml::ElementNode *pelmFirmware = pelmHardware->createChild("Firmware");
     1841         pelmFirmware->setAttribute("type", hw.cFirmwareType);
     1842    }
     1843
    18351844    xml::ElementNode *pelmBoot = pelmHardware->createChild("Boot");
    18361845    for (BootOrderMap::const_iterator it = hw.mapBootOrder.begin();
Note: See TracChangeset for help on using the changeset viewer.

© 2025 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette