VirtualBox

Ignore:
Timestamp:
Aug 2, 2010 12:39:48 PM (14 years ago)
Author:
vboxsync
Message:

Cleaned up a bit

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/xml/Settings.cpp

    r31292 r31293  
    42274227        }
    42284228    }
    4229     // VirtualBox 3.2: Check for non default I/O settings and bump the settings version.
    4230     if (m->sv < SettingsVersion_v1_11)
    4231     {
     4229    if (m->sv < SettingsVersion_v1_10)
     4230    {
     4231        // VirtualBox 3.2: Check for non default I/O settings and bump the settings version.
    42324232        if (   hardwareMachine.ioSettings.fIoCacheEnabled != true
    42334233            || hardwareMachine.ioSettings.ulIoCacheSize != 5)
    42344234            m->sv = SettingsVersion_v1_10;
    4235     }
    4236 
    4237     // VirtualBox 3.2 adds support for VRDP video channel
    4238     if (    m->sv < SettingsVersion_v1_11
    4239         && (    hardwareMachine.vrdpSettings.fVideoChannel
    4240            )
    4241        )
    4242         m->sv = SettingsVersion_v1_10;
    4243 
    4244     // VirtualBox 3.3 adds support for HD audio
    4245     if (    m->sv < SettingsVersion_v1_11
    4246         && (    hardwareMachine.audioAdapter.controllerType == AudioControllerType_HDA
    4247             )
    4248        )
    4249         m->sv = SettingsVersion_v1_11;
    4250 
    4251     // VirtualBox 3.3 adds support for CPU priority
    4252     if (    m->sv < SettingsVersion_v1_11
    4253         && (    hardwareMachine.ulCpuPriority != 100
    4254            )
    4255        )
    4256         m->sv = SettingsVersion_v1_11;
     4235
     4236        // VirtualBox 3.2 adds support for VRDP video channel
     4237        if (hardwareMachine.vrdpSettings.fVideoChannel)
     4238            m->sv = SettingsVersion_v1_10;
     4239    }
     4240
     4241    if (m->sv < SettingsVersion_v1_11)
     4242    {
     4243        // VirtualBox 3.3 adds support for HD audio
     4244        if (hardwareMachine.audioAdapter.controllerType == AudioControllerType_HDA)
     4245            m->sv = SettingsVersion_v1_11;
     4246
     4247        // VirtualBox 3.3 adds support for CPU priority
     4248        if (hardwareMachine.ulCpuPriority != 100)
     4249            m->sv = SettingsVersion_v1_11;
     4250    }
    42574251}
    42584252
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette