| 72 | } |
| 73 | |
| 74 | std::string SettingsManager::getValue(CString _path) |
| 75 | { |
| 76 | pugi::xpath_node node = mUserDocument->document_element().select_single_node(_path.c_str()); |
| 77 | if (!node.node().empty()) |
| 78 | return node.node().child_value(); |
| 79 | |
| 80 | node = mDocument->document_element().select_single_node(_path.c_str()); |
| 81 | if (!node.node().empty()) |
| 82 | return node.node().child_value(); |
| 83 | |
| 84 | return {}; |
| 85 | } |
| 86 | |
| 87 | void SettingsManager::setValueImpl(std::string_view _path, CString _value) |
| 88 | { |