Changeset 103080 in vbox for trunk/src/VBox/Frontends/VirtualBox
- Timestamp:
- Jan 26, 2024 12:12:12 PM (13 months ago)
- svn:sync-xref-src-repo-rev:
- 161326
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/src/settings/editors/UIBootOrderEditor.cpp
r102971 r103080 349 349 UIBootItemDataList UIBootDataTools::loadBootItems(const CMachine &comMachine) 350 350 { 351 /* Gather a list of all possible boot items.352 * Currently, it seems, we are supporting only 4 possible boot device types:353 * 1. Floppy, 2. DVD-ROM, 3. Hard Disk, 4. Network.354 * But maximum boot devices count supported by machine should be retrieved355 * through the ISystemProperties getter. Moreover, possible boot device356 * types are not listed in some separate Main vector, so we should get them357 * (randomely?) from the list of all device types. Until there will be a358 * separate Main getter for list of supported boot device types, this list359 * will be hard-coded here... */360 QVector<KDeviceType> possibleBootItems = QVector<KDeviceType>() << KDeviceType_Floppy361 << KDeviceType_DVD362 << KDeviceType_HardDisk363 << KDeviceType_Network;364 351 CPlatform comPlatform = comMachine.GetPlatform(); 365 352 const KPlatformArchitecture comArch = comPlatform.GetArchitecture(); 366 353 const CPlatformProperties comProperties = uiCommon().virtualBox().GetPlatformProperties(comArch); 354 QVector<KDeviceType> possibleBootItems = comProperties.GetSupportedBootDevices(); 367 355 const int iPossibleBootListSize = qMin((ULONG)4, comProperties.GetMaxBootPosition()); 368 356 possibleBootItems.resize(iPossibleBootListSize);
Note:
See TracChangeset
for help on using the changeset viewer.