diff options
author | archshift <admin@archshift.com> | 2014-12-07 23:40:27 +0100 |
---|---|---|
committer | archshift <admin@archshift.com> | 2014-12-07 23:47:14 +0100 |
commit | 20d2ed09502f41519beb435a1300f2a57995c651 (patch) | |
tree | 4d58349bdfc1ab122d522780c1d9692832ce9ad0 /src/core/file_sys/archive_sdmc.cpp | |
parent | Merge pull request #250 from Subv/cbranch_2 (diff) | |
download | yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.gz yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.bz2 yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.lz yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.xz yuzu-20d2ed09502f41519beb435a1300f2a57995c651.tar.zst yuzu-20d2ed09502f41519beb435a1300f2a57995c651.zip |
Diffstat (limited to 'src/core/file_sys/archive_sdmc.cpp')
-rw-r--r-- | src/core/file_sys/archive_sdmc.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/core/file_sys/archive_sdmc.cpp b/src/core/file_sys/archive_sdmc.cpp index 169ab0f1c..fc0b9b72d 100644 --- a/src/core/file_sys/archive_sdmc.cpp +++ b/src/core/file_sys/archive_sdmc.cpp @@ -100,6 +100,8 @@ bool Archive_SDMC::RenameDirectory(const FileSys::Path& src_path, const FileSys: std::unique_ptr<Directory> Archive_SDMC::OpenDirectory(const Path& path) const { DEBUG_LOG(FILESYS, "called path=%s", path.DebugStr().c_str()); Directory_SDMC* directory = new Directory_SDMC(this, path); + if (!directory->Open()) + return nullptr; return std::unique_ptr<Directory>(directory); } |