mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
Improved responsiveness when refreshing game list.
This commit is contained in:
@ -4,6 +4,7 @@
|
||||
|
||||
#pragma once
|
||||
|
||||
#include <atomic>
|
||||
#include <cstddef>
|
||||
#include <functional>
|
||||
#include <memory>
|
||||
@ -44,9 +45,11 @@ public:
|
||||
// These functions return true if the call modified the cache.
|
||||
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 = {});
|
||||
std::function<void(const std::string&)> game_removed_from_cache = {},
|
||||
const std::atomic_bool& processing_halted = false);
|
||||
bool UpdateAdditionalMetadata(
|
||||
std::function<void(const std::shared_ptr<const GameFile>&)> game_updated = {});
|
||||
std::function<void(const std::shared_ptr<const GameFile>&)> game_updated = {},
|
||||
const std::atomic_bool& processing_halted = false);
|
||||
|
||||
bool Load();
|
||||
bool Save();
|
||||
|
Reference in New Issue
Block a user