| 31 | struct LevelInfoReader { |
| 32 | LevelInfo li; |
| 33 | void Load(const std::string& rel_path) { |
| 34 | char abs_path[kPathSize]; |
| 35 | if (FindFilePath(rel_path.c_str(), abs_path, kPathSize, kDataPaths | kModPaths) == -1) { |
| 36 | FatalError("Error", "Could not find level info: %s", rel_path.c_str()); |
| 37 | } else { |
| 38 | ParseLevelXML(abs_path, li); |
| 39 | } |
| 40 | } |
| 41 | const std::string& visible_name() { return li.visible_name_; } |
| 42 | const std::string& visible_description() { return li.visible_description_; } |
| 43 | }; |
nothing calls this directly
no test coverage detected