- Timestamp:
- Jul 9, 2008 9:03:34 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 33052
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VBoxManage/VBoxManage.cpp
r10220 r10396 345 345 " [-boot<1-4> none|floppy|dvd|disk|net>]\n" 346 346 " [-hd<a|b|d> none|<uuid>|<filename>]\n" 347 " [-idecontroller PIIX3|PIIX4]\n" 347 348 #ifdef VBOX_WITH_AHCI 348 349 " [-sata on|off]\n" … … 3710 3711 char *dvd = NULL; 3711 3712 char *dvdpassthrough = NULL; 3713 char *idecontroller = NULL; 3712 3714 char *floppy = NULL; 3713 3715 char *audio = NULL; … … 3952 3954 dvdpassthrough = argv[i]; 3953 3955 } 3956 else if (strcmp(argv[i], "-idecontroller") == 0) 3957 { 3958 if (argc <= i + 1) 3959 return errorArgument("Missing argument to '%s'", argv[i]); 3960 i++; 3961 idecontroller = argv[i]; 3962 } 3954 3963 else if (strcmp(argv[i], "-floppy") == 0) 3955 3964 { … … 4760 4769 4761 4770 CHECK_ERROR(dvdDrive, COMSETTER(Passthrough)(strcmp(dvdpassthrough, "on") == 0)); 4771 } 4772 if (idecontroller) 4773 { 4774 if (RTStrICmp(idecontroller, "PIIX3") == 0) 4775 { 4776 CHECK_ERROR(biosSettings, COMSETTER(IDEControllerType)(IDEControllerType_PIIX3)); 4777 } 4778 else if (RTStrICmp(idecontroller, "PIIX4") == 0) 4779 { 4780 CHECK_ERROR(biosSettings, COMSETTER(IDEControllerType)(IDEControllerType_PIIX4)); 4781 } 4782 else 4783 { 4784 errorArgument("Invalid -idecontroller argument '%s'", idecontroller); 4785 rc = E_FAIL; 4786 break; 4787 } 4762 4788 } 4763 4789 if (floppy)
Note:
See TracChangeset
for help on using the changeset viewer.