summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar bunnei2015-08-30 11:44:39 -0400
committerGravatar bunnei2015-08-30 11:44:39 -0400
commit5906d8b01cbe3178dfec22311d409ddb910445b8 (patch)
treed2b5f1ca55497263a753e706747dd67bbd7eb13c /src
parentMerge pull request #1049 from Subv/stencil (diff)
parentServices/FS: Correctly tell the guest app whether a file was correctly opened... (diff)
downloadyuzu-5906d8b01cbe3178dfec22311d409ddb910445b8.tar.gz
yuzu-5906d8b01cbe3178dfec22311d409ddb910445b8.tar.xz
yuzu-5906d8b01cbe3178dfec22311d409ddb910445b8.zip
Merge pull request #1085 from Subv/fs_stat
Services/FS: Correctly tell the guest app whether a file was correctly opened or not
Diffstat (limited to 'src')
-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 {