VirtualBox

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


Ignore:
Timestamp:
Apr 23, 2013 8:45:54 AM (12 years ago)
Author:
vboxsync
svn:sync-xref-src-repo-rev:
85197
Message:

Main/Machine+Console+Display+VRDEServer,VBoxManage: allow VMs without graphics controller, eliminate annoying spurious error messages about Console not yet powered up when taking screenshots, getting/setting guest properties and updating metrics, make as many parameters to modifyvm as possible case insensitive

File:
1 edited

Legend:

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

    r45660 r45674  
    27012701                if (strGraphicsControllerType == "VBOXVGA")
    27022702                    type = GraphicsControllerType_VBoxVGA;
     2703                else if (strGraphicsControllerType == "NONE")
     2704                    type = GraphicsControllerType_Null;
    27032705                else
    27042706                    throw ConfigFileError(this, pelmHwChild, N_("Invalid value '%s' in Display/@controller attribute"), strGraphicsControllerType.c_str());
     
    38793881
    38803882    xml::ElementNode *pelmDisplay = pelmHardware->createChild("Display");
     3883    if (hw.graphicsControllerType != GraphicsControllerType_VBoxVGA)
     3884    {
     3885        const char *pcszGraphics;
     3886        switch (hw.graphicsControllerType)
     3887        {
     3888            case GraphicsControllerType_VBoxVGA:            pcszGraphics = "VBoxVGA"; break;
     3889            default: /*case GraphicsControllerType_Null:*/  pcszGraphics = "None"; break;
     3890        }
     3891        pelmDisplay->setAttribute("controller", pcszGraphics);
     3892    }
    38813893    pelmDisplay->setAttribute("VRAMSize", hw.ulVRAMSizeMB);
    38823894    pelmDisplay->setAttribute("monitorCount", hw.cMonitors);
     
    50175029    if (m->sv < SettingsVersion_v1_14)
    50185030    {
    5019         // VirtualBox 4.3 adds default frontend setting.
     5031        // VirtualBox 4.3 adds default frontend setting, graphics controller
     5032        // setting, explicit long mode setting.
    50205033        if (   !hardwareMachine.strDefaultFrontend.isEmpty()
     5034            || hardwareMachine.graphicsControllerType != GraphicsControllerType_VBoxVGA
    50215035            || hardwareMachine.enmLongMode != Hardware::LongMode_Legacy)
    50225036            m->sv = SettingsVersion_v1_14;
Note: See TracChangeset for help on using the changeset viewer.

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