mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-01 14:58:14 +00:00
Path: Avoid adding a double slash from root.
This commit is contained in:
1 parent
11eb5fa0c2
commit
d5dac66c7a
1 file changed
+1
-1
@@ -87,7 +87,7 @@ Path Path::operator /(const std::string &subdir) const {
|
||||
return Path(path_);
|
||||
}
|
||||
std::string fullPath = path_;
|
||||
if (subdir.front() != '/') {
|
||||
if (subdir.front() != '/' && (fullPath.empty() || fullPath.back() != '/')) {
|
||||
fullPath += "/";
|
||||
}
|
||||
fullPath += subdir;
|
||||
|
||||
Reference in new issue
Block a user