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

Method load

radiantcore/map/VcsMapResource.cpp:34–47  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34bool VcsMapResource::load()
35{
36 auto result = MapResource::load();
37
38 if (result)
39 {
40 // Set the name string to contain the revision of the map
41 auto mapName = fmt::format("{0}@{1}", os::getFilename(vcs::getVcsFilePath(_mapFileUri)),
42 vcs::getVcsRevision(_mapFileUri).substr(0, 7));
43 getRootNode()->setName(mapName);
44 }
45
46 return result;
47}
48
49bool VcsMapResource::isReadOnly()
50{

Callers

nothing calls this directly

Calls 6

getFilenameFunction · 0.85
getVcsFilePathFunction · 0.85
getVcsRevisionFunction · 0.85
loadFunction · 0.50
formatFunction · 0.50
setNameMethod · 0.45

Tested by

no test coverage detected