Merge pull request #6560 from JosJuice/invalid-games-in-game-list

DolphinQt2: Don't show invalid games in game list
This commit is contained in:
Mat M
2018-03-29 18:49:38 -04:00
committed by GitHub
3 changed files with 11 additions and 3 deletions

View File

@ -173,7 +173,9 @@ void GameTracker::LoadGame(const QString& path)
if (!DiscIO::ShouldHideFromGameList(converted_path))
{
bool cache_changed = false;
emit GameLoaded(m_cache.AddOrGet(converted_path, &cache_changed, m_title_database));
auto game = m_cache.AddOrGet(converted_path, &cache_changed, m_title_database);
if (game)
emit GameLoaded(std::move(game));
if (cache_changed)
m_cache.Save();
}