Changeset 13964 in vbox for trunk/src/VBox/Frontends/VBoxManage
- Timestamp:
- Nov 7, 2008 3:05:22 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r13956 r13964 336 336 " [-vtxvpid on|off]\n" 337 337 " [-monitorcount <number>]\n" 338 " [-accelerate3d <on|off>]\n" 338 339 " [-bioslogofadein on|off]\n" 339 340 " [-bioslogofadeout on|off]\n" … … 1065 1066 else 1066 1067 RTPrintf("Monitor count: %d\n", numMonitors); 1068 1069 BOOL accelerate3d; 1070 machine->COMGETTER(Accelerate3DEnabled)(&accelerate3d); 1071 if (details == VMINFO_MACHINEREADABLE) 1072 RTPrintf("accelerate3d=\"%s\"\n", accelerate3d ? "on" : "off"); 1073 else 1074 RTPrintf("3D Acceleration: %s\n", accelerate3d ? "on" : "off"); 1067 1075 1068 1076 ComPtr<IFloppyDrive> floppyDrive; … … 3842 3850 char *ioapic = NULL; 3843 3851 int monitorcount = -1; 3852 char *accelerate3d = NULL; 3844 3853 char *bioslogofadein = NULL; 3845 3854 char *bioslogofadeout = NULL; … … 3993 4002 monitorcount = atoi(argv[i]); 3994 4003 } 4004 else if (strcmp(argv[i], "-accelerate3d") == 0) 4005 { 4006 if (argc <= i + 1) 4007 return errorArgument("Missing argument to '%s'", argv[i]); 4008 i++; 4009 accelerate3d = argv[i]; 4010 } 3995 4011 else if (strcmp(argv[i], "-bioslogofadein") == 0) 3996 4012 { … … 4666 4682 { 4667 4683 CHECK_ERROR(machine, COMSETTER(MonitorCount)(monitorcount)); 4684 } 4685 if (accelerate3d) 4686 { 4687 if (strcmp(accelerate3d, "on") == 0) 4688 { 4689 CHECK_ERROR(machine, COMSETTER(Accelerate3DEnabled)(true)); 4690 } 4691 else if (strcmp(accelerate3d, "off") == 0) 4692 { 4693 CHECK_ERROR(machine, COMSETTER(Accelerate3DEnabled)(false)); 4694 } 4695 else 4696 { 4697 errorArgument("Invalid -accelerate3d argument '%s'", ioapic); 4698 rc = E_FAIL; 4699 break; 4700 } 4668 4701 } 4669 4702 if (bioslogofadein)
Note:
See TracChangeset
for help on using the changeset viewer.