mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 22:29:39 -06:00
DolphinQt2: Don't show invalid games in game list
Regression from 1f1dae3
.
This problem doesn't happen in DolphinWX as far as I know, but if
you've ran into the problem in DolphinQt2, it will carry over to
DolphinWX because of the shared game list cache.
This commit is contained in:
@ -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();
|
||||
}
|
||||
|
Reference in New Issue
Block a user