Changeset 103085 in vbox for trunk/src/VBox/Main/xml/Settings.cpp
- Timestamp:
- Jan 26, 2024 4:17:43 PM (10 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Main/xml/Settings.cpp
r102455 r103085 4409 4409 fTeleporterEnabled(false), 4410 4410 uTeleporterPort(0), 4411 enmVMPriority(VMProcPriority_Default) 4411 enmVMPriority(VMProcPriority_Default), 4412 enmExecEngine(VMExecutionEngine_Default) 4412 4413 { 4413 4414 llGroups.push_back("/"); … … 4434 4435 && strTeleporterPassword == c.strTeleporterPassword 4435 4436 && ovIcon == c.ovIcon 4436 && enmVMPriority == c.enmVMPriority); 4437 && enmVMPriority == c.enmVMPriority 4438 && enmExecEngine == c.enmExecEngine); 4437 4439 } 4438 4440 … … 7019 7021 } 7020 7022 7023 { 7024 Utf8Str strExecEngine; 7025 if (elmMachine.getAttributeValue("executionEngine", strExecEngine)) 7026 { 7027 if (strExecEngine == "HwVirt") 7028 machineUserData.enmExecEngine = VMExecutionEngine_HwVirt; 7029 else if (strExecEngine == "NativeApi") 7030 machineUserData.enmExecEngine = VMExecutionEngine_NativeApi; 7031 else if (strExecEngine == "Interpreter") 7032 machineUserData.enmExecEngine = VMExecutionEngine_Interpreter; 7033 else if (strExecEngine == "Recompiler") 7034 machineUserData.enmExecEngine = VMExecutionEngine_Recompiler; 7035 else 7036 machineUserData.enmExecEngine = VMExecutionEngine_Default; 7037 } 7038 } 7039 7021 7040 str.setNull(); 7022 7041 elmMachine.getAttributeValue("icon", str); … … 9206 9225 break; 9207 9226 } 9227 9228 switch (machineUserData.enmExecEngine) 9229 { 9230 case VMExecutionEngine_HwVirt: 9231 elmMachine.setAttribute("executionEngine", "HwVirt"); 9232 break; 9233 case VMExecutionEngine_NativeApi: 9234 elmMachine.setAttribute("executionEngine", "NativeApi"); 9235 break; 9236 case VMExecutionEngine_Interpreter: 9237 elmMachine.setAttribute("executionEngine", "Interpreter"); 9238 break; 9239 case VMExecutionEngine_Recompiler: 9240 elmMachine.setAttribute("executionEngine", "Recompiler"); 9241 break; 9242 case VMExecutionEngine_Default: 9243 default: 9244 break; 9245 } 9246 9208 9247 // Please keep the icon last so that one doesn't have to check if there 9209 9248 // is anything in the line after this very long attribute in the XML. … … 9485 9524 if ( ( hardwareMachine.platformSettings.architectureType != PlatformArchitecture_None 9486 9525 && hardwareMachine.platformSettings.architectureType != PlatformArchitecture_x86) 9487 || hardwareMachine.graphicsAdapter.graphicsControllerType == GraphicsControllerType_QemuRamFB) 9526 || hardwareMachine.graphicsAdapter.graphicsControllerType == GraphicsControllerType_QemuRamFB 9527 || machineUserData.enmExecEngine != VMExecutionEngine_Default) 9488 9528 { 9489 9529 /* Note: The new chipset type ARMv8Virtual implies setting the platform architecture type to ARM. */
Note:
See TracChangeset
for help on using the changeset viewer.