| 
									
										
										
										
											2015-05-24 06:55:12 +02:00
										 |  |  | // Copyright 2008 Dolphin Emulator Project
 | 
					
						
							| 
									
										
										
										
											2015-05-18 01:08:10 +02:00
										 |  |  | // Licensed under GPLv2+
 | 
					
						
							| 
									
										
										
										
											2013-04-17 23:09:55 -04:00
										 |  |  | // Refer to the license.txt file included.
 | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2014-02-10 13:54:46 -05:00
										 |  |  | #pragma once
 | 
					
						
							| 
									
										
										
										
											2008-12-08 04:46:09 +00:00
										 |  |  | 
 | 
					
						
							|  |  |  | #include <string>
 | 
					
						
							|  |  |  | #include <vector>
 | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2017-04-07 00:55:10 -04:00
										 |  |  | namespace Common | 
					
						
							|  |  |  | { | 
					
						
							| 
									
										
										
										
											2017-06-20 21:24:26 -07:00
										 |  |  | // Callers can pass empty "exts" to indicate they want all files + directories in results
 | 
					
						
							|  |  |  | // Otherwise, only files matching the extensions are returned
 | 
					
						
							|  |  |  | std::vector<std::string> DoFileSearch(const std::vector<std::string>& directories, | 
					
						
							|  |  |  |                                       const std::vector<std::string>& exts = {}, | 
					
						
							| 
									
										
										
										
											2016-06-24 10:43:46 +02:00
										 |  |  |                                       bool recursive = false); | 
					
						
							| 
									
										
										
										
											2017-04-07 00:55:10 -04:00
										 |  |  | }  // namespace Common
 |