VirtualBox

Changeset 19118 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 22, 2009 8:05:55 PM (16 years ago)
Author:
vboxsync
Message:

ConsoleImpl2.cpp: VBoxInternal/Devices/SupportExtHwProfile -> VBoxInternal2/Devices/SupportExtHwProfile; VBoxInternal2/UseEFI.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/ConsoleImpl2.cpp

    r19059 r19118  
    357357    rc = CFGMR3InsertNode(pInst,    "Config", &pCfg);                               RC_CHECK();
    358358
    359     BOOL fEfiEnabled;
     359    /*
     360     * Firmware.
     361     */
     362#ifdef VBOX_WITH_EFI
    360363    /** @todo: implement appropriate getter */
    361 #ifdef VBOX_WITH_EFI
    362     fEfiEnabled = true;
     364    Bstr tmpStr1;
     365    hrc = pMachine->GetExtraData(Bstr("VBoxInternal2/UseEFI"), tmpStr1.asOutParam());    H();
     366    BOOL fEfiEnabled = tmpStr1 == Bstr("on");
    363367#else
    364     fEfiEnabled = false;
    365 #endif
    366 
    367     if (fEfiEnabled)
    368     {
    369         rc = CFGMR3InsertNode(pDevices, "efi", &pDev);                       RC_CHECK();
    370         rc = CFGMR3InsertNode(pDev,     "0", &pInst);                        RC_CHECK();
    371         rc = CFGMR3InsertInteger(pInst, "Trusted",   1);     /* boolean */   RC_CHECK();
    372     }
    373 
    374     /*
    375      * PC Bios.
    376      */
     368    BOOL fEfiEnabled = false;
     369#endif
    377370    if (!fEfiEnabled)
    378371    {
     372        /*
     373         * PC Bios.
     374         */
    379375        rc = CFGMR3InsertNode(pDevices, "pcbios", &pDev);                               RC_CHECK();
    380376        rc = CFGMR3InsertNode(pDev,     "0", &pInst);                                   RC_CHECK();
     
    431427        }
    432428    }
     429    else
     430    {
     431        /*
     432         * EFI.
     433         */
     434        rc = CFGMR3InsertNode(pDevices, "efi", &pDev);                       RC_CHECK();
     435        rc = CFGMR3InsertNode(pDev,     "0", &pInst);                        RC_CHECK();
     436        rc = CFGMR3InsertInteger(pInst, "Trusted",   1);     /* boolean */   RC_CHECK();
     437    }
    433438
    434439    /*
     
    481486#endif
    482487
    483 
    484     Bstr tmpStr;
    485     rc = pMachine->GetExtraData(Bstr("VBoxInternal/Devices/SupportExtHwProfile"), tmpStr.asOutParam());
    486 
    487     BOOL fExtProfile;
    488 
    489     if (SUCCEEDED(rc))
    490         fExtProfile = (tmpStr == Bstr("on"));
    491     else
    492         fExtProfile = false;
     488    /*
     489     * Temporary hack for enabling the next three devices and various ACPI features.
     490     */
     491    Bstr tmpStr2;
     492    hrc = pMachine->GetExtraData(Bstr("VBoxInternal2/SupportExtHwProfile"), tmpStr2.asOutParam()); H();
     493    BOOL fExtProfile = tmpStr2 == Bstr("on");
    493494
    494495    /*
     
    501502    fHpetEnabled = false;
    502503#endif
    503 
    504504    if (fHpetEnabled)
    505505    {
     
    535535    fLpcEnabled = false;
    536536#endif
    537 
    538537    if (fLpcEnabled)
    539538    {
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