summaryrefslogtreecommitdiffstats
path: root/src/core/file_sys/archive_source_sd_savedata.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-21 06:41:11 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-25 06:06:00 +0200
commit92be29adba56408685e594e5e659f1dc83686cde (patch)
tree09afef886d4eb26e4f752dc9b93c81ea21d87d9c /src/core/file_sys/archive_source_sd_savedata.cpp
parentresult: Make error description a generic integer (diff)
downloadyuzu-92be29adba56408685e594e5e659f1dc83686cde.tar
yuzu-92be29adba56408685e594e5e659f1dc83686cde.tar.gz
yuzu-92be29adba56408685e594e5e659f1dc83686cde.tar.bz2
yuzu-92be29adba56408685e594e5e659f1dc83686cde.tar.lz
yuzu-92be29adba56408685e594e5e659f1dc83686cde.tar.xz
yuzu-92be29adba56408685e594e5e659f1dc83686cde.tar.zst
yuzu-92be29adba56408685e594e5e659f1dc83686cde.zip
Diffstat (limited to 'src/core/file_sys/archive_source_sd_savedata.cpp')
-rw-r--r--src/core/file_sys/archive_source_sd_savedata.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/core/file_sys/archive_source_sd_savedata.cpp b/src/core/file_sys/archive_source_sd_savedata.cpp
index f31a68038..a7e331724 100644
--- a/src/core/file_sys/archive_source_sd_savedata.cpp
+++ b/src/core/file_sys/archive_source_sd_savedata.cpp
@@ -6,6 +6,7 @@
#include "common/logging/log.h"
#include "common/string_util.h"
#include "core/file_sys/archive_source_sd_savedata.h"
+#include "core/file_sys/errors.h"
#include "core/file_sys/savedata_archive.h"
#include "core/hle/service/fs/archive.h"
@@ -49,8 +50,7 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveSource_SDSaveData::Open(u64 pr
// save file/directory structure expected by the game has not yet been initialized.
// Returning the NotFormatted error code will signal the game to provision the SaveData
// archive with the files and folders that it expects.
- return ResultCode(ErrorDescription::FS_NotFormatted, ErrorModule::FS,
- ErrorSummary::InvalidState, ErrorLevel::Status);
+ return ERR_NOT_FORMATTED;
}
auto archive = std::make_unique<SaveDataArchive>(std::move(concrete_mount_point));
@@ -81,8 +81,7 @@ ResultVal<ArchiveFormatInfo> ArchiveSource_SDSaveData::GetFormatInfo(u64 program
if (!file.IsOpen()) {
LOG_ERROR(Service_FS, "Could not open metadata information for archive");
// TODO(Subv): Verify error code
- return ResultCode(ErrorDescription::FS_NotFormatted, ErrorModule::FS,
- ErrorSummary::InvalidState, ErrorLevel::Status);
+ return ERR_NOT_FORMATTED;
}
ArchiveFormatInfo info = {};