diff options
author | archshift <admin@archshift.com> | 2014-10-10 04:43:40 +0200 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-10-23 00:24:25 +0200 |
commit | a59f57d50467bd5dba1f28b8020278d6298babf7 (patch) | |
tree | 62f1528fcb2815bcb382ea8c606b6fa8fc18ba95 /src/core/file_sys/archive_sdmc.cpp | |
parent | Merge pull request #145 from yuriks/shader-log-crash (diff) | |
download | yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar.gz yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar.bz2 yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar.lz yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar.xz yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.tar.zst yuzu-a59f57d50467bd5dba1f28b8020278d6298babf7.zip |
Diffstat (limited to 'src/core/file_sys/archive_sdmc.cpp')
-rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index 213923c02..0b647f7d0 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp @@ -10,6 +10,7 @@ #include "core/file_sys/archive_sdmc.h" #include "core/file_sys/directory_sdmc.h" #include "core/file_sys/file_sdmc.h" +#include "core/settings.h" //////////////////////////////////////////////////////////////////////////////////////////////////// // FileSys namespace @@ -29,8 +30,13 @@ Archive_SDMC::~Archive_SDMC() { * @return true if it initialized successfully */ bool Archive_SDMC::Initialize() { - if (!FileUtil::IsDirectory(mount_point)) { - WARN_LOG(FILESYS, "Directory %s not found, disabling SDMC.", mount_point.c_str()); + if (!Settings::values.use_virtual_sd) { + WARN_LOG(FILESYS, "SDMC disabled by config."); + return false; + } + + if (!FileUtil::CreateFullPath(mount_point)) { + WARN_LOG(FILESYS, "Unable to create SDMC path."); return false; } |