| 65 | } |
| 66 | |
| 67 | void AssetPackManager::Scan() |
| 68 | { |
| 69 | ClearAssetPacks(); |
| 70 | |
| 71 | auto context = GetContext(); |
| 72 | auto& env = context->GetPlatformEnvironment(); |
| 73 | |
| 74 | auto openrct2Dir = fs::u8path(env.GetDirectoryPath(DirBase::openrct2, DirId::assetPacks)); |
| 75 | Scan(openrct2Dir); |
| 76 | |
| 77 | auto userDirectory = fs::u8path(env.GetDirectoryPath(DirBase::user, DirId::assetPacks)); |
| 78 | Path::CreateDirectory(userDirectory.u8string()); |
| 79 | Scan(userDirectory); |
| 80 | } |
| 81 | |
| 82 | void AssetPackManager::Scan(const fs::path& directory) |
| 83 | { |
no test coverage detected