2
1
Fork 0
mirror of https://github.com/yuzu-emu/yuzu.git synced 2024-07-04 23:31:19 +01:00

Merge pull request #1085 from Subv/fs_stat

Services/FS: Correctly tell the guest app whether a file was correctly opened or not
This commit is contained in:
bunnei 2015-08-30 11:44:39 -04:00
commit 5906d8b01c

View file

@ -102,7 +102,7 @@ bool DiskFile::Open() {
mode_string += "b"; mode_string += "b";
file = Common::make_unique<FileUtil::IOFile>(path, mode_string.c_str()); file = Common::make_unique<FileUtil::IOFile>(path, mode_string.c_str());
return true; return file->IsOpen();
} }
size_t DiskFile::Read(const u64 offset, const size_t length, u8* buffer) const { size_t DiskFile::Read(const u64 offset, const size_t length, u8* buffer) const {