diff options
| author | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-20 21:41:11 -0700 |
|---|---|---|
| committer | Yuri Kunde Schlesner <yuriks@yuriks.net> | 2017-05-24 21:06:00 -0700 |
| commit | 92be29adba56408685e594e5e659f1dc83686cde (patch) | |
| tree | 09afef886d4eb26e4f752dc9b93c81ea21d87d9c /src/core/hle/service/fs/fs_user.cpp | |
| parent | 3b1f0fea31d3c56d94f580c1ea3978a5590b5f8a (diff) | |
FileSys: Move all result description to errors.h
Diffstat (limited to 'src/core/hle/service/fs/fs_user.cpp')
| -rw-r--r-- | src/core/hle/service/fs/fs_user.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/core/hle/service/fs/fs_user.cpp b/src/core/hle/service/fs/fs_user.cpp index 33b290699..ad1aadab5 100644 --- a/src/core/hle/service/fs/fs_user.cpp +++ b/src/core/hle/service/fs/fs_user.cpp @@ -8,6 +8,7 @@ #include "common/logging/log.h" #include "common/scope_exit.h" #include "common/string_util.h" +#include "core/file_sys/errors.h" #include "core/hle/kernel/client_session.h" #include "core/hle/result.h" #include "core/hle/service/fs/archive.h" @@ -539,9 +540,7 @@ static void FormatSaveData(Service::Interface* self) { if (archive_id != FS::ArchiveIdCode::SaveData) { LOG_ERROR(Service_FS, "tried to format an archive different than SaveData, %u", static_cast<u32>(archive_id)); - cmd_buff[1] = ResultCode(ErrorDescription::FS_InvalidPath, ErrorModule::FS, - ErrorSummary::InvalidArgument, ErrorLevel::Usage) - .raw; + cmd_buff[1] = FileSys::ERROR_INVALID_PATH.raw; return; } |
