Skip to content

Commit

Permalink
Use generic_string to erase part we need to get the relativePathString.
Browse files Browse the repository at this point in the history
Was causing some problems on Linux in some circumstances (probably due to the way things are converted).
  • Loading branch information
jpd002 committed May 21, 2021
1 parent 642bc7c commit 6fc9c32
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Source/iop/Iop_McServ.cpp
Expand Up @@ -1061,7 +1061,7 @@ void CMcServ::CPathFinder::SearchRecurse(const fs::path& path)
std::string relativePathString(relativePath.generic_string());

//"Extract" a more appropriate relative path from the memory card point of view
relativePathString.erase(0, m_basePath.string().size());
relativePathString.erase(0, m_basePath.generic_string().size());

//Attempt to match this against the filter
if(std::regex_match(relativePathString, m_filterExp))
Expand Down

0 comments on commit 6fc9c32

Please sign in to comment.