diff options
| author | spycrab <spycrab@users.noreply.github.com> | 2018-05-27 04:31:32 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-05-27 04:31:32 +0200 |
| commit | 7b07424885fa2a71f8a08e1d86e7fb65dfb815be (patch) | |
| tree | 1205defdb4d458261012b98df8ab68a02d0f5c4d /Source/Core/UICommon/GameFileCache.h | |
| parent | 0c2538f17f49772e6573939f85118aa8384a8ac4 (diff) | |
| parent | fd651cf5e6c20b905012a9f266e90e3adace7683 (diff) | |
Merge pull request #6975 from JosJuice/qt-fast-gamelist
DolphinQt2: Show cached games before checking whether they exist on disk
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.h')
| -rw-r--r-- | Source/Core/UICommon/GameFileCache.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/Source/Core/UICommon/GameFileCache.h b/Source/Core/UICommon/GameFileCache.h index 8a13dffc41..3a23f5211b 100644 --- a/Source/Core/UICommon/GameFileCache.h +++ b/Source/Core/UICommon/GameFileCache.h @@ -40,8 +40,12 @@ public: const Core::TitleDatabase& title_database); // These functions return true if the call modified the cache. - bool Update(const std::vector<std::string>& all_game_paths); - bool UpdateAdditionalMetadata(const Core::TitleDatabase& title_database); + bool Update(const std::vector<std::string>& all_game_paths, + std::function<void(const std::shared_ptr<const GameFile>&)> game_added_to_cache = {}, + std::function<void(const std::string&)> game_removed_from_cache = {}); + bool UpdateAdditionalMetadata( + const Core::TitleDatabase& title_database, + std::function<void(const std::shared_ptr<const GameFile>&)> game_updated = {}); bool Load(); bool Save(); |
