diff options
author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-21 06:41:11 +0200 |
---|---|---|
committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-25 06:06:00 +0200 |
commit | 92be29adba56408685e594e5e659f1dc83686cde (patch) | |
tree | 09afef886d4eb26e4f752dc9b93c81ea21d87d9c /src/core/hle/service/ptm | |
parent | result: Make error description a generic integer (diff) | |
download | yuzu-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/hle/service/ptm')
-rw-r--r-- | src/core/hle/service/ptm/ptm.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/hle/service/ptm/ptm.cpp b/src/core/hle/service/ptm/ptm.cpp index b6d6d105a..39382ef09 100644 --- a/src/core/hle/service/ptm/ptm.cpp +++ b/src/core/hle/service/ptm/ptm.cpp @@ -3,6 +3,7 @@ // Refer to the license.txt file included. #include "common/logging/log.h" +#include "core/file_sys/errors.h" #include "core/file_sys/file_backend.h" #include "core/hle/service/fs/archive.h" #include "core/hle/service/ptm/ptm.h" @@ -134,7 +135,7 @@ void Init() { auto archive_result = Service::FS::OpenArchive(Service::FS::ArchiveIdCode::SharedExtSaveData, archive_path); // If the archive didn't exist, create the files inside - if (archive_result.Code().description == static_cast<u32>(ErrorDescription::FS_NotFormatted)) { + if (archive_result.Code() == FileSys::ERR_NOT_FORMATTED) { // Format the archive to create the directories Service::FS::FormatArchive(Service::FS::ArchiveIdCode::SharedExtSaveData, FileSys::ArchiveFormatInfo(), archive_path); |