mirror of
https://github.com/open-goal/jak-project
synced 2026-08-22 07:04:29 -04:00
tests: add jak3 typeconsistency test and ensure offline tests are working (#3310)
This commit is contained in:
@@ -636,6 +636,9 @@ std::vector<fs::path> find_files_in_dir(const fs::path& dir, const std::regex& p
|
||||
|
||||
std::vector<fs::path> find_files_recursively(const fs::path& base_dir, const std::regex& pattern) {
|
||||
std::vector<fs::path> files = {};
|
||||
if (!fs::exists(base_dir)) {
|
||||
return files;
|
||||
}
|
||||
for (auto& p : fs::recursive_directory_iterator(base_dir)) {
|
||||
if (p.is_regular_file()) {
|
||||
if (std::regex_match(p.path().filename().string(), pattern)) {
|
||||
|
||||
Reference in New Issue
Block a user