summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/ivfc_archive.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2017-11-01 00:26:11 +0100
committerbunnei <bunneidev@gmail.com>2017-11-01 00:26:11 +0100
commit34571f4d2e80a3194a3c4cb697dba674d11a35b4 (patch)
treeb2b4b70d7a5bdea95ef5d44733eedf7e6b3b7009 /src/core/file_sys/ivfc_archive.cpp
parentexternals: Update dynarmic and xbyak. (diff)
downloadyuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar
yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar.gz
yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar.bz2
yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar.lz
yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar.xz
yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.tar.zst
yuzu-34571f4d2e80a3194a3c4cb697dba674d11a35b4.zip
Diffstat (limited to 'src/core/file_sys/ivfc_archive.cpp')
-rw-r--r--src/core/file_sys/ivfc_archive.cpp10
1 files changed, 4 insertions, 6 deletions
diff --git a/src/core/file_sys/ivfc_archive.cpp b/src/core/file_sys/ivfc_archive.cpp
index 2735d2e3c..b3c3f2c6f 100644
--- a/src/core/file_sys/ivfc_archive.cpp
+++ b/src/core/file_sys/ivfc_archive.cpp
@@ -26,9 +26,8 @@ ResultVal<std::unique_ptr<FileBackend>> IVFCArchive::OpenFile(const Path& path,
ResultCode IVFCArchive::DeleteFile(const Path& path) const {
LOG_CRITICAL(Service_FS, "Attempted to delete a file from an IVFC archive (%s).",
GetName().c_str());
- // TODO(Subv): Verify error code
- return ResultCode(ErrorDescription::NoData, ErrorModule::FS, ErrorSummary::Canceled,
- ErrorLevel::Status);
+ // TODO(bunnei): Use correct error code
+ return ResultCode(-1);
}
ResultCode IVFCArchive::RenameFile(const Path& src_path, const Path& dest_path) const {
@@ -55,9 +54,8 @@ ResultCode IVFCArchive::DeleteDirectoryRecursively(const Path& path) const {
ResultCode IVFCArchive::CreateFile(const Path& path, u64 size) const {
LOG_CRITICAL(Service_FS, "Attempted to create a file in an IVFC archive (%s).",
GetName().c_str());
- // TODO: Verify error code
- return ResultCode(ErrorDescription::NotAuthorized, ErrorModule::FS, ErrorSummary::NotSupported,
- ErrorLevel::Permanent);
+ // TODO(bunnei): Use correct error code
+ return ResultCode(-1);
}
ResultCode IVFCArchive::CreateDirectory(const Path& path) const {