mirror of
https://github.com/libretro/ppsspp.git
synced 2024-11-27 10:20:49 +00:00
Core: Fix spurious error on Linux/Unix paths.
CreateFullPath with an absolute path would try to create ''.
This commit is contained in:
parent
8506da14f0
commit
2201c65b00
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user