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

Method exportMap

radiantcore/map/Map.cpp:1187–1207  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1185}
1186
1187void Map::exportMap(const cmd::ArgumentList& args)
1188{
1189 auto fileInfo = MapFileManager::getMapFileSelection(false, _("Export Map"), filetype::TYPE_MAP_EXPORT);
1190
1191 if (!fileInfo.fullPath.empty())
1192 {
1193 if (!fileInfo.mapFormat)
1194 {
1195 fileInfo.mapFormat = getMapFormatForFilenameSafe(fileInfo.fullPath);
1196 }
1197
1198 emitMapEvent(MapSaving);
1199
1200 MapResource::saveFile(*fileInfo.mapFormat,
1201 GlobalSceneGraph().root(),
1202 scene::traverse,
1203 fileInfo.fullPath);
1204
1205 emitMapEvent(MapSaved);
1206 }
1207}
1208
1209void Map::exportSelection(const cmd::ArgumentList& args)
1210{

Callers 3

saveMapDiffFunction · 0.45
exportSelectedMethod · 0.45
saveFileMethod · 0.45

Calls 3

_Function · 0.50
emptyMethod · 0.45
rootMethod · 0.45

Tested by

no test coverage detected