VirtualBox

Changeset 20251 in vbox


Ignore:
Timestamp:
Jun 4, 2009 7:51:49 AM (16 years ago)
Author:
vboxsync
Message:

VBoxManager: reverted 48110

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxManage/VBoxManageInfo.cpp

    r20250 r20251  
    255255    else
    256256        RTPrintf("Boot menu mode:  %s\n", pszBootMenu);
    257 
    258     ULONG maxBootPosition = 0;
    259     ComPtr<ISystemProperties> systemProperties;
    260     virtualBox->COMGETTER(SystemProperties)(systemProperties.asOutParam());
    261     systemProperties->COMGETTER(MaxBootPosition)(&maxBootPosition);
    262     for (ULONG i = 1; i <= maxBootPosition; i++)
    263     {
    264         ULONG bootOrder;
    265         machine->GetBootOrder(i, &bootOrder);
    266         if (bootOrder == DeviceType_Floppy)
    267         {
    268             if (details == VMINFO_MACHINEREADABLE)
    269                 RTPrintf("bootdevice-%d=\"floppy\"\n", i);
    270             else
    271                 RTPrintf("Boot Device (%d): Floppy\n", i);
    272         }
    273         else if (bootOrder == DeviceType_DVD)
    274         {
    275             if (details == VMINFO_MACHINEREADABLE)
    276                 RTPrintf("bootdevice-%d=\"dvd\"\n", i);
    277             else
    278                 RTPrintf("Boot Device (%d): DVD\n", i);
    279         }
    280         else if (bootOrder == DeviceType_HardDisk)
    281         {
    282             if (details == VMINFO_MACHINEREADABLE)
    283                 RTPrintf("bootdevice-%d=\"harddisk\"\n", i);
    284             else
    285                 RTPrintf("Boot Device (%d): HardDisk\n", i);
    286         }
    287         else if (bootOrder == DeviceType_Network)
    288         {
    289             if (details == VMINFO_MACHINEREADABLE)
    290                 RTPrintf("bootdevice-%d=\"network\"\n", i);
    291             else
    292                 RTPrintf("Boot Device (%d): Network\n", i);
    293         }
    294         else if (bootOrder == DeviceType_USB)
    295         {
    296             if (details == VMINFO_MACHINEREADABLE)
    297                 RTPrintf("bootdevice-%d=\"usb\"\n", i);
    298             else
    299                 RTPrintf("Boot Device (%d): USB\n", i);
    300         }
    301         else if (bootOrder == DeviceType_SharedFolder)
    302         {
    303             if (details == VMINFO_MACHINEREADABLE)
    304                 RTPrintf("bootdevice-%d=\"sharedfolder\"\n", i);
    305             else
    306                 RTPrintf("Boot Device (%d): Shared Folder\n", i);
    307         }
    308         else
    309         {
    310             if (details == VMINFO_MACHINEREADABLE)
    311                 RTPrintf("bootdevice-%d=\"null\"\n", i);
    312             else
    313                 RTPrintf("Boot Device (%d): Not Assigned\n", i);
    314         }
    315     }
    316257
    317258    BOOL acpiEnabled;
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