Changeset 8003 in vbox
- Timestamp:
- Apr 15, 2008 3:20:27 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r7998 r8003 342 342 " [-sataportcount <1-30>]\n" 343 343 " [-sataport<1-30> none|<uuid>|<filename>]\n" 344 " [-sataideemulation hda|hdb|hdc|hdd<1-30>]\n"344 " [-sataideemulation<1-4> <1-30>]\n" 345 345 #endif 346 346 " [-dvd none|<uuid>|<filename>|host:<drive>]\n" … … 4417 4417 hdds[n-1+4] = argv[i]; 4418 4418 } 4419 else if (str cmp(argv[i], "-sataideemulation") == 0)4419 else if (strncmp(argv[i], "-sataideemulation", 17) == 0) 4420 4420 { 4421 4421 unsigned bootDevicePos = 0; 4422 4422 unsigned n; 4423 4423 4424 if (argc <= i + 2) 4424 bootDevicePos = parseNum(&argv[i][17], 4, "SATA"); 4425 if (!bootDevicePos) 4426 return 1; 4427 bootDevicePos--; 4428 4429 if (argc <= i + 1) 4425 4430 { 4426 4431 return errorArgument("Missing arguments to '%s'", argv[i]); … … 4428 4433 i++; 4429 4434 4430 if (strcmp(argv[i], "hda") == 0)4431 bootDevicePos = 0;4432 else if (strcmp(argv[i], "hdb") == 0)4433 bootDevicePos = 1;4434 else if (strcmp(argv[i], "hdc") == 0)4435 bootDevicePos = 2;4436 else if (strcmp(argv[i], "hdd") == 0)4437 bootDevicePos = 3;4438 else4439 return errorArgument("Invalid argument to '%s'", argv[i-1]);4440 4441 i++;4442 4435 n = parseNum(argv[i], 30, "SATA"); 4443 4436 if (!n)
Note:
See TracChangeset
for help on using the changeset viewer.