| 379 | { |
| 380 | _roots.push_back({std::move(path), source}); |
| 381 | } |
| 382 | |
| 383 | ModCollection ModLoader::Load() const |
| 384 | { |
| 385 | ModCollection col; |
| 386 | for (const Root& r : _roots) |
| 387 | { |
| 388 | for (Mod& m : ScanModsRoot(r.path, r.source)) |
| 389 | { |
| 390 | if (!col.Contains(m.id)) |
| 391 | col.Add(std::move(m)); |
| 392 | } |
| 393 | } |
| 394 | return col; |
| 395 | } |
| 396 | } // namespace Poseidon |
no test coverage detected