MCPcopy Create free account
hub / github.com/WolfireGames/overgrowth / Load

Method Load

Source/Internal/levelxml_script.cpp:33–40  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

31struct 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};

Callers

nothing calls this directly

Calls 4

FindFilePathFunction · 0.85
ParseLevelXMLFunction · 0.85
FatalErrorFunction · 0.70
c_strMethod · 0.45

Tested by

no test coverage detected