mirror of
https://github.com/RPCS3/rpcs3.git
synced 2025-04-20 11:36:13 +00:00
Workaround fs::create_path for drive roots
Should fix the regression from #6763
This commit is contained in:
parent
eafbc77c0d
commit
7ca76ae5a8
1 changed files with 5 additions and 0 deletions
|
@ -553,7 +553,12 @@ bool fs::create_path(const std::string& path)
|
|||
{
|
||||
const std::string parent = get_parent_dir(path);
|
||||
|
||||
#ifdef _WIN32
|
||||
// Workaround: don't call is_dir with naked drive letter
|
||||
if (!parent.empty() && parent.back() != ':' && !is_dir(parent) && !create_path(parent))
|
||||
#else
|
||||
if (!parent.empty() && !is_dir(parent) && !create_path(parent))
|
||||
#endif
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue