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

Method getMapFormatForFilenameSafe

radiantcore/map/Map.cpp:465–471  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

463}
464
465MapFormatPtr Map::getMapFormatForFilenameSafe(const std::string& filename)
466{
467 auto candidate = GlobalMapFormatManager().getMapFormatForFilename(filename);
468
469 // Fall back to the format of the current map if the selection is empty (#5808)
470 return candidate ? candidate : getFormat();
471}
472
473// free all map elements, reinitialize the structures that depend on them
474void Map::freeMap()

Callers 1

saveRegionMethod · 0.80

Calls 1

Tested by

no test coverage detected