diff options
| author | 2016-06-19 00:09:16 -0700 | |
|---|---|---|
| committer | 2016-06-19 00:12:15 -0700 | |
| commit | d6792632f0a426247167fc91c12c1f640748464f (patch) | |
| tree | acf52c2afb186071142991e852c9bda645f56c41 /src/citra_qt/game_list.cpp | |
| parent | Merge pull request #1877 from wwylele/wait-fix-timeout (diff) | |
| download | yuzu-d6792632f0a426247167fc91c12c1f640748464f.tar.gz yuzu-d6792632f0a426247167fc91c12c1f640748464f.tar.xz yuzu-d6792632f0a426247167fc91c12c1f640748464f.zip | |
Fix recursive scanning of directories
ForeachDirectoryEntry didn't actually do anything with the `recursive`
parameter, and the corresponding callback parameter was shadowing the
actual recursion counters in the user functions.
Diffstat (limited to 'src/citra_qt/game_list.cpp')
| -rw-r--r-- | src/citra_qt/game_list.cpp | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/src/citra_qt/game_list.cpp b/src/citra_qt/game_list.cpp index 15484fae3..1910da3ac 100644 --- a/src/citra_qt/game_list.cpp +++ b/src/citra_qt/game_list.cpp | |||
| @@ -120,11 +120,9 @@ void GameList::LoadInterfaceLayout() | |||
| 120 | 120 | ||
| 121 | void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsigned int recursion) | 121 | void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsigned int recursion) |
| 122 | { | 122 | { |
| 123 | const auto callback = [&](unsigned* num_entries_out, | 123 | const auto callback = [this, recursion](unsigned* num_entries_out, |
| 124 | const std::string& directory, | 124 | const std::string& directory, |
| 125 | const std::string& virtual_name, | 125 | const std::string& virtual_name) -> bool { |
| 126 | unsigned int recursion) -> bool { | ||
| 127 | |||
| 128 | std::string physical_name = directory + DIR_SEP + virtual_name; | 126 | std::string physical_name = directory + DIR_SEP + virtual_name; |
| 129 | 127 | ||
| 130 | if (stop_processing) | 128 | if (stop_processing) |