Skip to content

Commit

Permalink
Merge pull request #204 from StarryWisdom/mingw-std-fs-fix
Browse files Browse the repository at this point in the history
Fix pause in findResources
  • Loading branch information
daid authored Nov 10, 2021
2 parents 5d722f5 + 8cd8682 commit 47da185
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/resources.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ std::vector<string> DirectoryResourceProvider::findResources(string searchPatter
{
// Use relative generic paths (ie forward slashes)
// In case caller want to pattern match with a folder.
auto relative_path = fs::relative(entry.path(), root).generic_u8string();
auto relative_path = entry.path().lexically_relative(root).generic_u8string();
if (!entry.is_directory() && searchMatch(relative_path, searchPattern))
found_files.push_back(relative_path);
}
Expand Down

0 comments on commit 47da185

Please sign in to comment.