Returns the value if "nodeName" child exists, else empty string
| 9 | |
| 10 | // Returns the value if "nodeName" child exists, else empty string |
| 11 | static UString readNode(const char *nodeName, const xml_node &node) |
| 12 | { |
| 13 | auto childNode = node.child(nodeName); |
| 14 | if (childNode) |
| 15 | return childNode.text().get(); |
| 16 | else |
| 17 | return ""; |
| 18 | } |
| 19 | |
| 20 | std::optional<ModInfo> ModInfo::getInfo(const UString &path) |
| 21 | { |