GameList: Scan data root games dir

This commit is contained in:
Stenzek 2023-07-14 21:27:10 +10:00
parent 44c0b0dc92
commit 7e6c5b4321
1 changed files with 5 additions and 1 deletions

View File

@ -611,9 +611,13 @@ void GameList::Refresh(bool invalidate_cache, bool only_cache, ProgressCallback*
const std::vector<std::string> excluded_paths(Host::GetBaseStringListSetting("GameList", "ExcludedPaths")); const std::vector<std::string> excluded_paths(Host::GetBaseStringListSetting("GameList", "ExcludedPaths"));
const std::vector<std::string> dirs(Host::GetBaseStringListSetting("GameList", "Paths")); const std::vector<std::string> dirs(Host::GetBaseStringListSetting("GameList", "Paths"));
const std::vector<std::string> recursive_dirs(Host::GetBaseStringListSetting("GameList", "RecursivePaths")); std::vector<std::string> recursive_dirs(Host::GetBaseStringListSetting("GameList", "RecursivePaths"));
const PlayedTimeMap played_time(LoadPlayedTimeMap(GetPlayedTimeFile())); const PlayedTimeMap played_time(LoadPlayedTimeMap(GetPlayedTimeFile()));
#ifdef __ANDROID__
recursive_dirs.push_back(Path::Combine(EmuFolders::DataRoot, "games"));
#endif
if (!dirs.empty() || !recursive_dirs.empty()) if (!dirs.empty() || !recursive_dirs.empty())
{ {
progress->SetProgressRange(static_cast<u32>(dirs.size() + recursive_dirs.size())); progress->SetProgressRange(static_cast<u32>(dirs.size() + recursive_dirs.size()));