summaryrefslogtreecommitdiff
path: root/src/core/file_sys
diff options
context:
space:
mode:
authorGravatar Subv2015-08-28 22:01:03 -0500
committerGravatar Subv2015-08-28 22:01:03 -0500
commitce6a65cec9fed77d7e8be14a0f393f03d1450b64 (patch)
treea25e69323824c9dc8383f2986e4c5fa3549ad1f7 /src/core/file_sys
parentMerge pull request #1038 from LittleWhite-tb/contributing-include (diff)
downloadyuzu-ce6a65cec9fed77d7e8be14a0f393f03d1450b64.tar.gz
yuzu-ce6a65cec9fed77d7e8be14a0f393f03d1450b64.tar.xz
yuzu-ce6a65cec9fed77d7e8be14a0f393f03d1450b64.zip
Services/FS: Correctly tell the guest app whether a file was correctly opened or not.
Closes #1067
Diffstat (limited to 'src/core/file_sys')
-rw-r--r--src/core/file_sys/disk_archive.cpp2
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 1096fd34d..e9ecd2b1c 100644
--- a/src/core/file_sys/disk_archive.cpp
+++ b/src/core/file_sys/disk_archive.cpp
@@ -102,7 +102,7 @@ bool DiskFile::Open() {
102 mode_string += "b"; 102 mode_string += "b";
103 103
104 file = Common::make_unique<FileUtil::IOFile>(path, mode_string.c_str()); 104 file = Common::make_unique<FileUtil::IOFile>(path, mode_string.c_str());
105 return true; 105 return file->IsOpen();
106} 106}
107 107
108size_t DiskFile::Read(const u64 offset, const size_t length, u8* buffer) const { 108size_t DiskFile::Read(const u64 offset, const size_t length, u8* buffer) const {