diff options
author | bunnei <bunneidev@gmail.com> | 2017-11-01 00:26:11 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2017-11-01 00:26:11 +0100 |
commit | 34571f4d2e80a3194a3c4cb697dba674d11a35b4 (patch) | |
tree | b2b4b70d7a5bdea95ef5d44733eedf7e6b3b7009 /src/core/file_sys/savedata_archive.cpp | |
parent | externals: Update dynarmic and xbyak. (diff) | |
download | yuzu-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/savedata_archive.cpp')
-rw-r--r-- | src/core/file_sys/savedata_archive.cpp | 22 |
1 files changed, 10 insertions, 12 deletions
diff --git a/src/core/file_sys/savedata_archive.cpp b/src/core/file_sys/savedata_archive.cpp index f8f811ba0..d7b012f6e 100644 --- a/src/core/file_sys/savedata_archive.cpp +++ b/src/core/file_sys/savedata_archive.cpp @@ -128,10 +128,8 @@ ResultCode SaveDataArchive::RenameFile(const Path& src_path, const Path& dest_pa return RESULT_SUCCESS; } - // TODO(yuriks): This code probably isn't right, it'll return a Status even if the file didn't - // exist or similar. Verify. - return ResultCode(ErrorDescription::NoData, ErrorModule::FS, // TODO: verify description - ErrorSummary::NothingHappened, ErrorLevel::Status); + // TODO(bunnei): Use correct error code + return ResultCode(-1); } template <typename T> @@ -223,8 +221,9 @@ ResultCode SaveDataArchive::CreateFile(const FileSys::Path& path, u64 size) cons } LOG_ERROR(Service_FS, "Too large file"); - return ResultCode(ErrorDescription::TooLarge, ErrorModule::FS, ErrorSummary::OutOfResource, - ErrorLevel::Info); + + // TODO(bunnei): Use correct error code + return ResultCode(-1); } ResultCode SaveDataArchive::CreateDirectory(const Path& path) const { @@ -260,8 +259,9 @@ ResultCode SaveDataArchive::CreateDirectory(const Path& path) const { } LOG_CRITICAL(Service_FS, "(unreachable) Unknown error creating %s", mount_point.c_str()); - return ResultCode(ErrorDescription::NoData, ErrorModule::FS, ErrorSummary::Canceled, - ErrorLevel::Status); + + // TODO(bunnei): Use correct error code + return ResultCode(-1); } ResultCode SaveDataArchive::RenameDirectory(const Path& src_path, const Path& dest_path) const { @@ -287,10 +287,8 @@ ResultCode SaveDataArchive::RenameDirectory(const Path& src_path, const Path& de return RESULT_SUCCESS; } - // TODO(yuriks): This code probably isn't right, it'll return a Status even if the file didn't - // exist or similar. Verify. - return ResultCode(ErrorDescription::NoData, ErrorModule::FS, // TODO: verify description - ErrorSummary::NothingHappened, ErrorLevel::Status); + // TODO(bunnei): Use correct error code + return ResultCode(-1); } ResultVal<std::unique_ptr<DirectoryBackend>> SaveDataArchive::OpenDirectory( |