Changeset 36395 in vbox for trunk/src/VBox
- Timestamp:
- Mar 24, 2011 11:54:52 AM (14 years ago)
- svn:sync-xref-src-repo-rev:
- 70748
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r36275 r36395 694 694 med.strFormat = "RAW"; 695 695 } 696 697 if (t == DVDImage) 698 med.hdType = MediumType_Readonly; 699 else if (t == FloppyImage) 700 med.hdType = MediumType_Writethrough; 696 701 } 697 702 … … 1013 1018 if (devType == DeviceType_HardDisk || RTStrICmp(mdm.strFormat.c_str(), "RAW")) 1014 1019 pelmMedium->setAttribute("format", mdm.strFormat); 1015 if (mdm.fAutoReset) 1020 if ( devType == DeviceType_HardDisk 1021 && mdm.fAutoReset) 1016 1022 pelmMedium->setAttribute("autoReset", mdm.fAutoReset); 1017 1023 if (mdm.strDescription.length()) … … 1030 1036 if (level == 0) 1031 1037 { 1032 const char *pcszType =1033 mdm.hdType == MediumType_Normal ? "Normal" :1034 mdm.hdType == MediumType_Immutable ? "Immutable" :1035 mdm.hdType == MediumType_Writethrough ? "Writethrough" :1036 mdm.hdType == MediumType_Shareable ? "Shareable" :1037 mdm.hdType == MediumType_Readonly ? "Readonly" :1038 mdm.hdType == MediumType_MultiAttach ? "MultiAttach" :1039 "INVALID";1040 1038 // no need to save the usual DVD/floppy medium types 1041 1039 if ( ( devType != DeviceType_DVD … … 1044 1042 && ( devType != DeviceType_Floppy 1045 1043 || mdm.hdType != MediumType_Writethrough)) 1044 { 1045 const char *pcszType = 1046 mdm.hdType == MediumType_Normal ? "Normal" : 1047 mdm.hdType == MediumType_Immutable ? "Immutable" : 1048 mdm.hdType == MediumType_Writethrough ? "Writethrough" : 1049 mdm.hdType == MediumType_Shareable ? "Shareable" : 1050 mdm.hdType == MediumType_Readonly ? "Readonly" : 1051 mdm.hdType == MediumType_MultiAttach ? "MultiAttach" : 1052 "INVALID"; 1046 1053 pelmMedium->setAttribute("type", pcszType); 1054 } 1047 1055 } 1048 1056
Note:
See TracChangeset
for help on using the changeset viewer.