mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2024-11-22 14:15:38 +00:00
Merge pull request #384 from pjft/path-fixes
Fixing common path detection
This commit is contained in:
commit
1e668d8e3f
|
@ -454,7 +454,7 @@ namespace Utils
|
|||
std::string common = isDirectory(_common) ? getGenericPath(_common) : getParent(_common);
|
||||
|
||||
// check if path contains common
|
||||
if(path.find_first_of(common) == 0)
|
||||
if(path.find(common) == 0)
|
||||
{
|
||||
_contains = true;
|
||||
return path.substr(common.length() + 1);
|
||||
|
|
Loading…
Reference in a new issue