diff --git a/AppUtils/AppConfig/Src/ConfigXmlUtils.cpp b/AppUtils/AppConfig/Src/ConfigXmlUtils.cpp index 62d95965..4d6bf106 100644 --- a/AppUtils/AppConfig/Src/ConfigXmlUtils.cpp +++ b/AppUtils/AppConfig/Src/ConfigXmlUtils.cpp @@ -266,6 +266,10 @@ void LoadDebugParam(XMLElement* root, VrDebugParam& param) param.saveDebugImage = debugElement->BoolAttribute("saveDebugImage"); if (debugElement->Attribute("printDetailLog")) param.printDetailLog = debugElement->BoolAttribute("printDetailLog"); + if (debugElement->Attribute("crash")) + { + param.crash = debugElement->BoolAttribute("crash"); + } if (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("saveDebugImage", param.saveDebugImage); debugElement->SetAttribute("printDetailLog", param.printDetailLog); + debugElement->SetAttribute("crash", param.crash); debugElement->SetAttribute("debugOutputPath", param.debugOutputPath.c_str()); root->InsertEndChild(debugElement); }