* Load directory filepaths with extension filtering and optional subdirectory scanning */
| 161 | * Load directory filepaths with extension filtering and optional subdirectory scanning |
| 162 | */ |
| 163 | RLCPP_MAYBEUNUSED RLCPPAPI std::vector<std::string> |
| 164 | LoadDirectoryFilesEx(const std::string& basePath, const std::string& filter, bool scanSubdirs = false) { |
| 165 | FilePathList files = ::LoadDirectoryFilesEx(basePath.c_str(), filter.c_str(), scanSubdirs); |
| 166 | std::vector<std::string> output(files.paths, files.paths + files.count); |
| 167 | ::UnloadDirectoryFiles(files); |
| 168 | return output; |
| 169 | } |
| 170 | |
| 171 | /** |
| 172 | * Change working directory, return true on success |