mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-01-17 22:55:38 +00:00
Fixing common path detection
This commit is contained in:
parent
566804e682
commit
b73d38a781
|
@ -454,7 +454,7 @@ namespace Utils
|
||||||
std::string common = isDirectory(_common) ? getGenericPath(_common) : getParent(_common);
|
std::string common = isDirectory(_common) ? getGenericPath(_common) : getParent(_common);
|
||||||
|
|
||||||
// check if path contains common
|
// check if path contains common
|
||||||
if(path.find_first_of(common) == 0)
|
if(path.find(common) == 0)
|
||||||
{
|
{
|
||||||
_contains = true;
|
_contains = true;
|
||||||
return path.substr(common.length() + 1);
|
return path.substr(common.length() + 1);
|
||||||
|
|
Loading…
Reference in a new issue