summaryrefslogtreecommitdiff
path: root/Source/Core/UICommon/GameFileCache.h
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/UICommon/GameFileCache.h')
-rw-r--r--Source/Core/UICommon/GameFileCache.h8
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();