diff options
author | wwylele <wwylele@gmail.com> | 2016-10-20 05:45:01 +0200 |
---|---|---|
committer | wwylele <wwylele@gmail.com> | 2016-11-19 17:55:34 +0100 |
commit | 0647f866498412f22999966cc97b122db2ef9318 (patch) | |
tree | 701dc82743f1aae1361d4a0a281416ca354c7ba8 /src/core/file_sys/disk_archive.cpp | |
parent | FileSys: add SDMCWriteOnlyArchive (diff) | |
download | yuzu-0647f866498412f22999966cc97b122db2ef9318.tar yuzu-0647f866498412f22999966cc97b122db2ef9318.tar.gz yuzu-0647f866498412f22999966cc97b122db2ef9318.tar.bz2 yuzu-0647f866498412f22999966cc97b122db2ef9318.tar.lz yuzu-0647f866498412f22999966cc97b122db2ef9318.tar.xz yuzu-0647f866498412f22999966cc97b122db2ef9318.tar.zst yuzu-0647f866498412f22999966cc97b122db2ef9318.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/file_sys/disk_archive.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/file_sys/disk_archive.cpp b/src/core/file_sys/disk_archive.cpp index 43d199434..0e51fd1a6 100644 --- a/src/core/file_sys/disk_archive.cpp +++ b/src/core/file_sys/disk_archive.cpp @@ -163,7 +163,7 @@ u64 DiskArchive::GetFreeBytes() const { //////////////////////////////////////////////////////////////////////////////////////////////////// ResultVal<size_t> DiskFile::Read(const u64 offset, const size_t length, u8* buffer) const { - if (!mode.read_flag && !mode.write_flag) + if (!mode.read_flag) return ResultCode(ErrorDescription::FS_InvalidOpenFlags, ErrorModule::FS, ErrorSummary::Canceled, ErrorLevel::Status); |