mirror of
https://github.com/RetroDECK/ES-DE.git
synced 2025-03-06 14:27:43 +00:00
Remove trailing '/' in getGenericPath
This commit is contained in:
parent
dc541e5e25
commit
15ccfc5a05
|
@ -226,6 +226,10 @@ namespace Utils
|
|||
while((offset = path.find("//")) != std::string::npos)
|
||||
path.erase(offset, 1);
|
||||
|
||||
// remove trailing '/'
|
||||
while(path.length() && ((offset = path.find_last_of('/')) == (path.length() - 1)))
|
||||
path.erase(offset, 1);
|
||||
|
||||
// return generic path
|
||||
return path;
|
||||
|
||||
|
|
Loading…
Reference in a new issue