فهرست منبع

Services/FS: Correctly tell the guest app whether a file was correctly opened or not.

Closes #1067
Subv 11 سال پیش
والد
کامیت
ce6a65cec9
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      src/core/file_sys/disk_archive.cpp

+ 1 - 1
src/core/file_sys/disk_archive.cpp

@@ -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 {