DolphinQt2: Show cached games before checking whether they exist on disk

DolphinWX already has this improvement in startup time, and it matters
a lot when you have a large game list.
This commit is contained in:
JosJuice
2018-05-26 18:22:14 +02:00
parent 17be4c69b9
commit 68152faf43
5 changed files with 105 additions and 13 deletions

View File

@ -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();