mirror of
				https://github.com/PabloMK7/citra.git
				synced 2025-10-31 13:50:03 +00:00 
			
		
		
		
	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.
This commit is contained in:
		
							parent
							
								
									8f86cc4df9
								
							
						
					
					
						commit
						d6792632f0
					
				
					 3 changed files with 15 additions and 22 deletions
				
			
		|  | @ -120,11 +120,9 @@ void GameList::LoadInterfaceLayout() | |||
| 
 | ||||
| void GameListWorker::AddFstEntriesToGameList(const std::string& dir_path, unsigned int recursion) | ||||
| { | ||||
|     const auto callback = [&](unsigned* num_entries_out, | ||||
|                               const std::string& directory, | ||||
|                               const std::string& virtual_name, | ||||
|                               unsigned int recursion) -> bool { | ||||
| 
 | ||||
|     const auto callback = [this, recursion](unsigned* num_entries_out, | ||||
|                                             const std::string& directory, | ||||
|                                             const std::string& virtual_name) -> bool { | ||||
|         std::string physical_name = directory + DIR_SEP + virtual_name; | ||||
| 
 | ||||
|         if (stop_processing) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue