| 204 | AppendMissionDirWithSubfolders(*active->dirs, |
| 205 | std::filesystem::path((const char*)dir) / GameDirs::MPMissions); |
| 206 | AppendMissionDirWithSubfolders(*active->dirs, std::filesystem::path((const char*)dir) / "mpmissions"); |
| 207 | return false; |
| 208 | }, |
| 209 | &ctx); |
| 210 | |
| 211 | AppendMissionDirWithSubfolders(dirs, std::filesystem::path((const char*)GetMPMissionsDir())); |
| 212 | |
| 213 | if (!AppConfig::Instance().IsSimulateMode()) |
| 214 | { |
| 215 | const std::string userDir = GamePaths::Instance().MPMissionsDir(); |
| 216 | if (!userDir.empty() && std::find(dirs.begin(), dirs.end(), userDir) == dirs.end()) |
| 217 | { |
| 218 | AppendMissionDirWithSubfolders(dirs, std::filesystem::path(userDir)); |
| 219 | } |
| 220 | } |
| 221 | return dirs; |
| 222 | } |
| 223 |
nothing calls this directly
no test coverage detected