mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-08 09:09:04 +00:00
Let's not CreateDir an empty string every time CreateFullPath is used, logging an error every time.
This commit is contained in:
parent
9ac2fbb0a5
commit
3330842505
1 changed files with 3 additions and 2 deletions
|
@ -197,7 +197,8 @@ bool CreateFullPath(const std::string &fullPath)
|
||||||
if (position == fullPath.npos)
|
if (position == fullPath.npos)
|
||||||
return true;
|
return true;
|
||||||
|
|
||||||
std::string subPath = fullPath.substr(0, position);
|
// Include the '/' so the first call is CreateDir("/") rather than CreateDir("")
|
||||||
|
std::string const subPath(fullPath.substr(0, position + 1));
|
||||||
if (!File::IsDirectory(subPath))
|
if (!File::IsDirectory(subPath))
|
||||||
File::CreateDir(subPath);
|
File::CreateDir(subPath);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue