MCPcopy Create free account
hub / github.com/TheForceEngine/TheForceEngine / saveFileDialog

Function saveFileDialog

TheForceEngine/TFE_Ui/ui.cpp:144–157  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

142}
143
144FileResult saveFileDialog(const char* title, const char* initPath, std::vector<std::string> filters/* = { "All Files", "*" }*/, bool forceOverwrite/* = false*/)
145{
146 char initPathOS[TFE_MAX_PATH] = "";
147 if (initPath)
148 {
149 FileUtil::convertToOSPath(initPath, initPathOS);
150 }
151
152 FileResult result;
153 std::string res = pfd::save_file(title, initPathOS, filters, forceOverwrite ? pfd::opt::force_overwrite : pfd::opt::none).result();
154 result.push_back(res);
155
156 return result;
157}
158
159}

Callers

nothing calls this directly

Calls 4

save_fileClass · 0.85
push_backMethod · 0.80
convertToOSPathFunction · 0.50
resultMethod · 0.45

Tested by

no test coverage detected