MCPcopy Create free account
hub / github.com/cutechess/cutechess / configPath

Method configPath

projects/gui/src/cutechessapp.cpp:121–133  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

119}
120
121QString CuteChessApplication::configPath()
122{
123 // We want to have the exact same config path in "gui" and
124 // "cli" applications so that they can share resources
125 QSettings settings;
126 QFileInfo fi(settings.fileName());
127 QDir dir(fi.absolutePath());
128
129 if (!dir.exists())
130 dir.mkpath(fi.absolutePath());
131
132 return fi.absolutePath();
133}
134
135EngineManager* CuteChessApplication::engineManager()
136{

Callers 1

saveConfigMethod · 0.45

Calls 1

fileNameMethod · 0.45

Tested by

no test coverage detected