Changeset 91326 in vbox for trunk/src/VBox/Main/xml
- Timestamp:
- Sep 22, 2021 3:10:38 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r91213 r91326 2584 2584 && apicMode == APICMode_APIC 2585 2585 && llTimeOffset == 0 2586 && strLogoImagePath.isEmpty() 2587 && strNVRAMPath.isEmpty(); 2586 && strLogoImagePath.isEmpty(); 2588 2587 } 2589 2588 … … 2606 2605 && apicMode == d.apicMode 2607 2606 && llTimeOffset == d.llTimeOffset 2608 && strLogoImagePath == d.strLogoImagePath 2609 && strNVRAMPath == d.strNVRAMPath); 2607 && strLogoImagePath == d.strLogoImagePath); 2610 2608 } 2611 2609 … … 2855 2853 && strLocation == g.strLocation); 2856 2854 } 2855 2856 /** 2857 * Constructor. Needs to set sane defaults which stand the test of time. 2858 */ 2859 NvramSettings::NvramSettings() 2860 { 2861 } 2862 2863 /** 2864 * Check if all settings have default values. 2865 */ 2866 bool NvramSettings::areDefaultSettings() const 2867 { 2868 return strNvramPath.isEmpty(); 2869 } 2870 2871 /** 2872 * Comparison operator. This gets called from MachineConfigFile::operator==, 2873 * which in turn gets called from Machine::saveSettings to figure out whether 2874 * machine settings have really changed and thus need to be written out to disk. 2875 */ 2876 bool NvramSettings::operator==(const NvramSettings &g) const 2877 { 2878 return (this == &g) 2879 || (strNvramPath == g.strNvramPath); 2880 } 2881 2857 2882 2858 2883 /** … … 3531 3556 && vrdeSettings == h.vrdeSettings 3532 3557 && biosSettings == h.biosSettings 3558 && nvramSettings == h.nvramSettings 3533 3559 && graphicsAdapter == h.graphicsAdapter 3534 3560 && usbSettings == h.usbSettings … … 4924 4950 pelmBIOSChild->getAttributeValue("value", hw.biosSettings.llTimeOffset); 4925 4951 if ((pelmBIOSChild = pelmHwChild->findChildElement("NVRAM"))) 4926 pelmBIOSChild->getAttributeValue("path", hw. biosSettings.strNVRAMPath);4952 pelmBIOSChild->getAttributeValue("path", hw.nvramSettings.strNvramPath); 4927 4953 if ((pelmBIOSChild = pelmHwChild->findChildElement("SmbiosUuidLittleEndian"))) 4928 4954 pelmBIOSChild->getAttributeValue("enabled", hw.biosSettings.fSmbiosUuidLittleEndian); … … 6443 6469 if (hw.biosSettings.fPXEDebugEnabled) 6444 6470 pelmBIOS->createChild("PXEDebug")->setAttribute("enabled", hw.biosSettings.fPXEDebugEnabled); 6445 if (!hw. biosSettings.strNVRAMPath.isEmpty())6446 pelmBIOS->createChild("NVRAM")->setAttribute("path", hw. biosSettings.strNVRAMPath);6471 if (!hw.nvramSettings.strNvramPath.isEmpty()) 6472 pelmBIOS->createChild("NVRAM")->setAttribute("path", hw.nvramSettings.strNvramPath); 6447 6473 if (hw.biosSettings.fSmbiosUuidLittleEndian) 6448 6474 pelmBIOS->createChild("SmbiosUuidLittleEndian")->setAttribute("enabled", hw.biosSettings.fSmbiosUuidLittleEndian); … … 7781 7807 if (m->sv < SettingsVersion_v1_18) 7782 7808 { 7783 if (!hardwareMachine. biosSettings.strNVRAMPath.isEmpty())7809 if (!hardwareMachine.nvramSettings.strNvramPath.isEmpty()) 7784 7810 { 7785 7811 m->sv = SettingsVersion_v1_18;
Note:
See TracChangeset
for help on using the changeset viewer.