MCPcopy Create free account
hub / github.com/codereader/DarkRadiant / loadInfoFile

Method loadInfoFile

radiantcore/map/MapResourceLoader.cpp:63–85  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

61}
62
63void MapResourceLoader::loadInfoFile(std::istream& stream, const RootNodePtr& root)
64{
65 if (!stream.good())
66 {
67 rError() << "[MapResource] No valid info file stream" << std::endl;
68 return;
69 }
70
71 rMessage() << "Parsing info file..." << std::endl;
72
73 try
74 {
75 // Read the infofile
76 InfoFile infoFile(stream, root, _indexMapping);
77
78 // Start parsing, this will throw if any errors occur
79 infoFile.parse();
80 }
81 catch (parser::ParseException& e)
82 {
83 rError() << "[MapResource] Unable to parse info file: " << e.what() << std::endl;
84 }
85}
86
87}

Callers 1

loadMapNodeMethod · 0.80

Calls 4

rErrorFunction · 0.85
rMessageFunction · 0.85
whatMethod · 0.80
parseMethod · 0.45

Tested by

no test coverage detected