mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-10-23 19:29:05 +02:00
Core: Fix spurious error on Linux/Unix paths.
CreateFullPath with an absolute path would try to create ''.
This commit is contained in:
1 parent
8506da14f0
commit
2201c65b00
1 file changed
+1
-1
+1
-1
@@ -336,7 +336,7 @@ bool CreateFullPath(const std::string &path)
|
||||
return true;
|
||||
}
|
||||
std::string subPath = fullPath.substr(0, position);
|
||||
if (!File::Exists(subPath))
|
||||
if (position != 0 && !File::Exists(subPath))
|
||||
File::CreateDir(subPath);
|
||||
|
||||
// A safety check
|
||||
|
||||
Reference in new issue
Block a user