general: reduce use of dynamic_cast

This commit is contained in:
Liam
2023-07-21 19:22:14 -04:00
parent efda6cc9ec
commit 4bee333d84
4 changed files with 13 additions and 2 deletions

View File

@ -235,7 +235,7 @@ GameListWorker::~GameListWorker() = default;
void GameListWorker::AddTitlesToGameList(GameListDir* parent_dir) {
using namespace FileSys;
const auto& cache = dynamic_cast<ContentProviderUnion&>(system.GetContentProvider());
const auto& cache = system.GetContentProviderUnion();
auto installed_games = cache.ListEntriesFilterOrigin(std::nullopt, TitleType::Application,
ContentRecordType::Program);