VirtualBox

Changeset 99680 in vbox for trunk/src/VBox/Main/xml


Ignore:
Timestamp:
May 8, 2023 4:50:51 PM (21 months ago)
Author:
vboxsync
Message:

Main/Settings: Be nice when loading the settings on downgraded versions: In case the selected backend isn't available / known to this version, fall back to the default backend, telling the user in the release log. bugref:10051

File:
1 edited

Legend:

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

    r98297 r99680  
    49694969            aa.driverType = AudioDriverType_MMPM;
    49704970        else
    4971             throw ConfigFileError(this, &elmAudioAdapter, N_("Invalid value '%s' in AudioAdapter/@driver attribute"), strTemp.c_str());
     4971        {
     4972            /* Be nice when loading the settings on downgraded versions: In case the selected backend isn't available / known
     4973             * to this version, fall back to the default backend, telling the user in the release log. See @bugref{10051c7}. */
     4974            LogRel(("WARNING: Invalid value '%s' in AudioAdapter/@driver attribute found; falling back to default audio backend\n",
     4975                    strTemp.c_str()));
     4976            aa.driverType = AudioDriverType_Default;
     4977        }
    49724978
    49734979        /* When loading settings >= 1.19 (VBox 7.0), the attribute "useDefault" will determine if the VM should use
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