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

Method getMapFileSelection

radiantcore/map/MapFileManager.cpp:23–42  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

21}
22
23MapFileSelection MapFileManager::getMapFileSelection(bool open,
24 const std::string& title,
25 const std::string& type,
26 const std::string& defaultFile)
27{
28 auto mode = open ?
29 radiant::FileSelectionRequest::Mode::Open :
30 radiant::FileSelectionRequest::Mode::Save;
31
32 radiant::FileSelectionRequest request(mode, title, type, defaultFile);
33 GlobalRadiantCore().getMessageBus().sendMessage(request);
34
35 MapFileSelection result;
36
37 result.fullPath = request.getResult().fullPath;
38 result.mapFormatName = request.getResult().mapFormatName;
39 result.mapFormat = GlobalMapFormatManager().getMapFormatByName(request.getResult().mapFormatName);
40
41 return result;
42}
43
44} // namespace map

Callers

nothing calls this directly

Calls 2

sendMessageMethod · 0.80
getMapFormatByNameMethod · 0.80

Tested by

no test coverage detected