summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorarchshift <admin@archshift.com>2014-10-10 08:27:47 +0200
committerarchshift <admin@archshift.com>2014-10-23 00:24:25 +0200
commita7c7946867c0f36c5091c1cf89954ccce637d51a (patch)
treee20649ce57257bc5224ff7cba1b87396b99ef5be /src
parentUse config files to store whether SDMC is enabled or not (diff)
downloadyuzu-a7c7946867c0f36c5091c1cf89954ccce637d51a.tar
yuzu-a7c7946867c0f36c5091c1cf89954ccce637d51a.tar.gz
yuzu-a7c7946867c0f36c5091c1cf89954ccce637d51a.tar.bz2
yuzu-a7c7946867c0f36c5091c1cf89954ccce637d51a.tar.lz
yuzu-a7c7946867c0f36c5091c1cf89954ccce637d51a.tar.xz
yuzu-a7c7946867c0f36c5091c1cf89954ccce637d51a.tar.zst
yuzu-a7c7946867c0f36c5091c1cf89954ccce637d51a.zip
Diffstat (limited to 'src')
-rw-r--r--src/common/file_util.cpp6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/common/file_util.cpp b/src/common/file_util.cpp
index 78a642599..9e40e87d4 100644
--- a/src/common/file_util.cpp
+++ b/src/common/file_util.cpp
@@ -190,8 +190,10 @@ bool CreateFullPath(const std::string &fullPath)
// Include the '/' so the first call is CreateDir("/") rather than CreateDir("")
std::string const subPath(fullPath.substr(0, position + 1));
- if (!FileUtil::IsDirectory(subPath))
- FileUtil::CreateDir(subPath);
+ if (!FileUtil::IsDirectory(subPath) && !FileUtil::CreateDir(subPath)) {
+ ERROR_LOG(COMMON, "CreateFullPath: directory creation failed");
+ return false;
+ }
// A safety check
panicCounter--;