VirtualBox

Changeset 3154 in vbox for trunk


Ignore:
Timestamp:
Jun 19, 2007 11:22:23 AM (18 years ago)
Author:
vboxsync
Message:

added monitorcount option

File:
1 edited

Legend:

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

    r3117 r3154  
    316316                 "                            [-ioapic on|off]\n"
    317317                 "                            [-hwvirtex on|off|default]\n"
     318                 "                            [-monitorcount <number>\n"
    318319                 "                            [-bioslogofadein on|off]\n"
    319320                 "                            [-bioslogofadeout on|off]\n"
     
    840841    RTPrintf("State:           %s (since %s)\n", pszState, pszTime);
    841842
     843    ULONG numMonitors;
     844    machine->COMGETTER(MonitorCount)(&numMonitors);
     845    RTPrintf("Monitor count:   %d\n", numMonitors);
     846
    842847    ComPtr<IFloppyDrive> floppyDrive;
    843848    rc = machine->COMGETTER(FloppyDrive)(floppyDrive.asOutParam());
     
    27232728    char *hwvirtex = NULL;
    27242729    char *ioapic = NULL;
     2730    int monitorcount = -1;
    27252731    char *bioslogofadein = NULL;
    27262732    char *bioslogofadeout = NULL;
     
    28392845            hwvirtex = argv[i];
    28402846        }
     2847        else if (strcmp(argv[i], "-monitorcount") == 0)
     2848        {
     2849            if (argc <= i + 1)
     2850            {
     2851                return errorArgument("Missing argument to '%s'", argv[i]);
     2852            }
     2853            i++;
     2854            monitorcount = atoi(argv[i]);
     2855        }
    28412856        else if (strcmp(argv[i], "-bioslogofadein") == 0)
    28422857        {
     
    33113326                break;
    33123327            }
     3328        }
     3329        if (monitorcount != -1)
     3330        {
     3331            CHECK_ERROR(machine, COMSETTER(MonitorCount)(monitorcount));
    33133332        }
    33143333        if (bioslogofadein)
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