general: reduce use of dynamic_cast
This commit is contained in:
parent
09bfde9775
commit
f07dd39222
4 changed files with 13 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue