mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
GameFileCache: Use std::span with Update()
All we're really doing is iterating over a sequence of strings, so we don't need to tie this specifically to std::vector.
This commit is contained in:
@ -83,7 +83,7 @@ std::shared_ptr<const GameFile> GameFileCache::AddOrGet(const std::string& path,
|
||||
return result;
|
||||
}
|
||||
|
||||
bool GameFileCache::Update(const std::vector<std::string>& all_game_paths,
|
||||
bool GameFileCache::Update(std::span<const std::string> all_game_paths,
|
||||
const GameAddedToCacheFn& game_added_to_cache,
|
||||
const GameRemovedFromCacheFn& game_removed_from_cache,
|
||||
const std::atomic_bool& processing_halted)
|
||||
|
Reference in New Issue
Block a user