summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/cfg/cfg.cpp
diff options
context:
space:
mode:
authorYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-21 06:00:18 +0200
committerYuri Kunde Schlesner <yuriks@yuriks.net>2017-05-25 06:05:59 +0200
commit3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a (patch)
treef1fe3acaba7ad0508cc893aebf32f7776ed0ea4a /src/core/hle/service/cfg/cfg.cpp
parentMake BitField and ResultCode constexpr-initializable (diff)
downloadyuzu-3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a.tar
yuzu-3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a.tar.gz
yuzu-3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a.tar.bz2
yuzu-3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a.tar.lz
yuzu-3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a.tar.xz
yuzu-3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a.tar.zst
yuzu-3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a.zip
Diffstat (limited to 'src/core/hle/service/cfg/cfg.cpp')
-rw-r--r--src/core/hle/service/cfg/cfg.cpp5
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..14185ae20 100644
--- a/src/core/hle/service/cfg/cfg.cpp
+++ b/src/core/hle/service/cfg/cfg.cpp
@@ -411,7 +411,8 @@ 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.description != static_cast<u32>(ErrorDescription::FS_FileNotFound)) {
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().description == static_cast<u32>(ErrorDescription::FS_NotFormatted)) {
// Format the archive to create the directories
Service::FS::FormatArchive(Service::FS::ArchiveIdCode::SystemSaveData,
FileSys::ArchiveFormatInfo(), archive_path);