MCPcopy Create free account
hub / github.com/cjcliffe/CubicSDR / getConfigFileName

Method getConfigFileName

src/AppConfig.cpp:558–574  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

556}
557
558std::string AppConfig::getConfigFileName(bool ignoreName) {
559 std::string cfgFileDir = getConfigDir();
560
561 wxFileName cfgFile;
562 if (configName.length() && !ignoreName) {
563 std::string tempFn("config-");
564 tempFn.append(configName);
565 tempFn.append(".xml");
566 cfgFile = wxFileName(cfgFileDir, tempFn);
567 } else {
568 cfgFile = wxFileName(cfgFileDir, "config.xml");
569 }
570
571 std::string cfgFileName = cfgFile.GetFullPath(wxPATH_NATIVE).ToStdString();
572
573 return cfgFileName;
574}
575
576bool AppConfig::save() {
577 DataTree cfg;

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected