| 36 | #include <tinyxml.h> |
| 37 | |
| 38 | void ExtractLevelName(const std::string& path, std::string& str) { |
| 39 | int slash_position = path.rfind('/') + 1; |
| 40 | int dot_position = path.rfind('.'); |
| 41 | str = path.substr(slash_position, dot_position - slash_position); |
| 42 | } |
| 43 | |
| 44 | void GetXMLVersionFromDoc(TiXmlDocument& doc, std::string& str) { |
| 45 | TiXmlHandle hDoc(&doc); |