| 119 | } |
| 120 | |
| 121 | QString 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 | |
| 135 | EngineManager* CuteChessApplication::engineManager() |
| 136 | { |