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

Method getMapFormatByName

radiantcore/map/format/MapFormatManager.cpp:34–45  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

32}
33
34MapFormatPtr MapFormatManager::getMapFormatByName(const std::string& mapFormatName)
35{
36 for (const auto& pair : _mapFormats)
37 {
38 if (pair.second->getMapFormatName() == mapFormatName)
39 {
40 return pair.second;
41 }
42 }
43
44 return MapFormatPtr(); // nothing found
45}
46
47MapFormatPtr MapFormatManager::getMapFormatForGameType(const std::string& gameType,
48 const std::string& extension)

Callers 3

TEST_FFunction · 0.80
getMapFileSelectionMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected