mirror of
https://github.com/hrydgard/ppsspp.git
synced 2025-04-02 11:01:50 -04: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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue