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/hle/service/cfg/cfg.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/hle/service/cfg/cfg.cpp')
-rw-r--r-- | src/core/hle/service/cfg/cfg.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/cfg/cfg.cpp b/src/core/hle/service/cfg/cfg.cpp index 8c8c1ec77..caa41ded7 100644 --- a/src/core/hle/service/cfg/cfg.cpp +++ b/src/core/hle/service/cfg/cfg.cpp @@ -11,6 +11,7 @@ #include "common/string_util.h" #include "common/swap.h" #include "core/file_sys/archive_systemsavedata.h" +#include "core/file_sys/errors.h" #include "core/file_sys/file_backend.h" #include "core/hle/result.h" #include "core/hle/service/cfg/cfg.h" @@ -411,7 +412,7 @@ ResultCode UpdateConfigNANDSavegame() { ResultCode FormatConfig() { ResultCode res = DeleteConfigNANDSaveFile(); // The delete command fails if the file doesn't exist, so we have to check that too - if (!res.IsSuccess() && res.description != ErrorDescription::FS_FileNotFound) { + if (!res.IsSuccess() && res != FileSys::ERROR_FILE_NOT_FOUND) { return res; } // Delete the old data @@ -534,7 +535,7 @@ ResultCode LoadConfigNANDSaveFile() { Service::FS::OpenArchive(Service::FS::ArchiveIdCode::SystemSaveData, archive_path); // If the archive didn't exist, create the files inside - if (archive_result.Code().description == ErrorDescription::FS_NotFormatted) { + if (archive_result.Code() == FileSys::ERR_NOT_FORMATTED) { // Format the archive to create the directories Service::FS::FormatArchive(Service::FS::ArchiveIdCode::SystemSaveData, FileSys::ArchiveFormatInfo(), archive_path); |