feat:debug结构体中增加crash配置

This commit is contained in:
YangSn 2026-10-08 10:38:10 +08:00
parent 5e62903dae
commit 5548168418

View File

@ -266,6 +266,10 @@ void LoadDebugParam(XMLElement* root, VrDebugParam& param)
param.saveDebugImage = debugElement->BoolAttribute("saveDebugImage"); param.saveDebugImage = debugElement->BoolAttribute("saveDebugImage");
if (debugElement->Attribute("printDetailLog")) if (debugElement->Attribute("printDetailLog"))
param.printDetailLog = debugElement->BoolAttribute("printDetailLog"); param.printDetailLog = debugElement->BoolAttribute("printDetailLog");
if (debugElement->Attribute("crash"))
{
param.crash = debugElement->BoolAttribute("crash");
}
if (debugElement->Attribute("debugOutputPath")) if (debugElement->Attribute("debugOutputPath"))
param.debugOutputPath = debugElement->Attribute("debugOutputPath"); param.debugOutputPath = debugElement->Attribute("debugOutputPath");
} }
@ -277,6 +281,7 @@ void SaveDebugParam(XMLDocument& doc, XMLElement* root, const VrDebugParam& para
debugElement->SetAttribute("savePointCloud", param.savePointCloud); debugElement->SetAttribute("savePointCloud", param.savePointCloud);
debugElement->SetAttribute("saveDebugImage", param.saveDebugImage); debugElement->SetAttribute("saveDebugImage", param.saveDebugImage);
debugElement->SetAttribute("printDetailLog", param.printDetailLog); debugElement->SetAttribute("printDetailLog", param.printDetailLog);
debugElement->SetAttribute("crash", param.crash);
debugElement->SetAttribute("debugOutputPath", param.debugOutputPath.c_str()); debugElement->SetAttribute("debugOutputPath", param.debugOutputPath.c_str());
root->InsertEndChild(debugElement); root->InsertEndChild(debugElement);
} }