diff options
author | bunnei <bunneidev@gmail.com> | 2017-05-26 17:59:57 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-05-26 17:59:57 +0200 |
commit | 61decd84cc5308bded75eae62c3247a66b3698d8 (patch) | |
tree | bbe05121af1a971bc295cb81baeea63f8c54f407 /src/core/file_sys/archive_systemsavedata.cpp | |
parent | Merge pull request #2697 from wwylele/proctex (diff) | |
parent | FS: Remove unused result definition (diff) | |
download | yuzu-61decd84cc5308bded75eae62c3247a66b3698d8.tar yuzu-61decd84cc5308bded75eae62c3247a66b3698d8.tar.gz yuzu-61decd84cc5308bded75eae62c3247a66b3698d8.tar.bz2 yuzu-61decd84cc5308bded75eae62c3247a66b3698d8.tar.lz yuzu-61decd84cc5308bded75eae62c3247a66b3698d8.tar.xz yuzu-61decd84cc5308bded75eae62c3247a66b3698d8.tar.zst yuzu-61decd84cc5308bded75eae62c3247a66b3698d8.zip |
Diffstat (limited to 'src/core/file_sys/archive_systemsavedata.cpp')
-rw-r--r-- | src/core/file_sys/archive_systemsavedata.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/file_sys/archive_systemsavedata.cpp b/src/core/file_sys/archive_systemsavedata.cpp index 8986b5c0e..81423bffd 100644 --- a/src/core/file_sys/archive_systemsavedata.cpp +++ b/src/core/file_sys/archive_systemsavedata.cpp @@ -9,6 +9,7 @@ #include "common/file_util.h" #include "common/string_util.h" #include "core/file_sys/archive_systemsavedata.h" +#include "core/file_sys/errors.h" #include "core/file_sys/savedata_archive.h" #include "core/hle/service/fs/archive.h" @@ -53,8 +54,7 @@ ResultVal<std::unique_ptr<ArchiveBackend>> ArchiveFactory_SystemSaveData::Open(c std::string fullpath = GetSystemSaveDataPath(base_path, path); if (!FileUtil::Exists(fullpath)) { // TODO(Subv): Check error code, this one is probably wrong - return ResultCode(ErrorDescription::FS_NotFormatted, ErrorModule::FS, - ErrorSummary::InvalidState, ErrorLevel::Status); + return ERR_NOT_FORMATTED; } auto archive = std::make_unique<SaveDataArchive>(fullpath); return MakeResult<std::unique_ptr<ArchiveBackend>>(std::move(archive)); |