VirtualBox

Changeset 55232 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 14, 2015 8:48:28 AM (10 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
99543
Message:

Main/xml/Settings: also bump the settings to 1.15 if there are USB storage controllers

File:
1 edited

Legend:

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

    r55119 r55232  
    55045504             * from the default for old settings.
    55055505             * AHCI ports are hotpluggable by default every other device is not.
     5506             * Also check if there are USB storage controllers.
    55065507             */
    55075508            for (StorageControllersList::const_iterator it = storageMachine.llStorageControllers.begin();
     
    55115512                bool fSettingsBumped = false;
    55125513                const StorageController &sctl = *it;
     5514
     5515                if (sctl.controllerType == StorageControllerType_USB)
     5516                {
     5517                    m->sv = SettingsVersion_v1_15;
     5518                    fSettingsBumped = true;
     5519                    break;
     5520                }
    55135521
    55145522                for (AttachedDevicesList::const_iterator it2 = sctl.llAttachedDevices.begin();
     
    55345542            }
    55355543
     5544            /*
     5545             * Check if there is an xHCI (USB3) USB controller.
     5546             */
    55365547            for (USBControllerList::const_iterator it = hardwareMachine.usbSettings.llUSBControllers.begin();
    55375548                 it != hardwareMachine.usbSettings.llUSBControllers.end();
Note: See TracChangeset for help on using the changeset viewer.

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