mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-09-07 05:03:35 +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
-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