Changeset 31467 in vbox
- Timestamp:
- Aug 9, 2010 9:29:25 AM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 64549
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r31466 r31467 4150 4150 if (m->sv < SettingsVersion_v1_11) 4151 4151 { 4152 // VirtualBox 3.3 adds support for HD audio 4153 if (hardwareMachine.audioAdapter.controllerType == AudioControllerType_HDA) 4154 m->sv = SettingsVersion_v1_11; 4155 4156 // VirtualBox 3.3 adds support for CPU priority 4157 if (hardwareMachine.ulCpuPriority != 100) 4158 m->sv = SettingsVersion_v1_11; 4159 4160 // .. and we now have per-machine media registries 4161 if ( mediaRegistry.llHardDisks.size() 4152 // VirtualBox 3.3 adds HD audio, CPU priorities and per-machine media registries 4153 if ( hardwareMachine.audioAdapter.controllerType == AudioControllerType_HDA 4154 || hardwareMachine.ulCpuPriority != 100 4155 || mediaRegistry.llHardDisks.size() 4162 4156 || mediaRegistry.llDvdImages.size() 4163 4157 || mediaRegistry.llFloppyImages.size() … … 4174 4168 ++netit) 4175 4169 { 4176 if (netit->ulBandwidthLimit) 4170 if ( (m->sv < SettingsVersion_v1_11) 4171 && (netit->ulBandwidthLimit) 4172 ) 4177 4173 { 4178 4174 /* New in VirtualBox 3.3 */ … … 4180 4176 break; 4181 4177 } 4182 4183 if ( netit->fEnabled 4184 && netit->mode == NetworkAttachmentType_NAT 4185 && ( netit->nat.u32Mtu != 0 4186 || netit->nat.u32SockRcv != 0 4187 || netit->nat.u32SockSnd != 0 4188 || netit->nat.u32TcpRcv != 0 4189 || netit->nat.u32TcpSnd != 0 4190 || !netit->nat.fDnsPassDomain 4191 || netit->nat.fDnsProxy 4192 || netit->nat.fDnsUseHostResolver 4193 || netit->nat.fAliasLog 4194 || netit->nat.fAliasProxyOnly 4195 || netit->nat.fAliasUseSamePorts 4196 || netit->nat.strTftpPrefix.length() 4197 || netit->nat.strTftpBootFile.length() 4198 || netit->nat.strTftpNextServer.length() 4199 || netit->nat.llRules.size()) 4200 ) 4178 else if ( (m->sv < SettingsVersion_v1_10) 4179 && (netit->fEnabled) 4180 && (netit->mode == NetworkAttachmentType_NAT) 4181 && ( netit->nat.u32Mtu != 0 4182 || netit->nat.u32SockRcv != 0 4183 || netit->nat.u32SockSnd != 0 4184 || netit->nat.u32TcpRcv != 0 4185 || netit->nat.u32TcpSnd != 0 4186 || !netit->nat.fDnsPassDomain 4187 || netit->nat.fDnsProxy 4188 || netit->nat.fDnsUseHostResolver 4189 || netit->nat.fAliasLog 4190 || netit->nat.fAliasProxyOnly 4191 || netit->nat.fAliasUseSamePorts 4192 || netit->nat.strTftpPrefix.length() 4193 || netit->nat.strTftpBootFile.length() 4194 || netit->nat.strTftpNextServer.length() 4195 || netit->nat.llRules.size() 4196 ) 4197 ) 4201 4198 { 4202 4199 m->sv = SettingsVersion_v1_10; 4203 break; 4204 } 4205 if ( netit->fEnabled 4206 && netit->ulBootPriority != 0) 4200 // no break because we still might need v1.11 above 4201 } 4202 else if ( (m->sv < SettingsVersion_v1_10) 4203 && (netit->fEnabled) 4204 && (netit->ulBootPriority != 0) 4205 ) 4207 4206 { 4208 4207 m->sv = SettingsVersion_v1_10; 4209 break;4208 // no break because we still might need v1.11 above 4210 4209 } 4211 4210 } … … 4219 4218 4220 4219 // VirtualBox 3.2 adds support for VRDP video channel 4221 if (hardwareMachine.vrdpSettings.fVideoChannel)4220 else if (hardwareMachine.vrdpSettings.fVideoChannel) 4222 4221 m->sv = SettingsVersion_v1_10; 4223 4222 } … … 4334 4333 ) 4335 4334 m->sv = SettingsVersion_v1_4; 4336 4337 4338 4339 4335 } 4340 4336
Note:
See TracChangeset
for help on using the changeset viewer.