summaryrefslogtreecommitdiff
path: root/src/core/hle/service/set
diff options
context:
space:
mode:
authorGravatar FearlessTobi2024-01-18 21:55:15 +0100
committerGravatar Liam2024-01-25 16:42:06 -0500
commitc60ab6bbf61021e247c2574a771d3d88a77ed398 (patch)
tree27e6b6b5d6afaabb7c6d1ba93ad63f140a70a65c /src/core/hle/service/set
parentfs: Replace Mode enum by OpenMode enum (diff)
downloadyuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar.gz
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar.xz
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.zip
fs/errors: Unify naming of result codes
Diffstat (limited to 'src/core/hle/service/set')
-rw-r--r--src/core/hle/service/set/system_settings_server.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/set/system_settings_server.cpp b/src/core/hle/service/set/system_settings_server.cpp
index f40a1c8f3..b527c39a9 100644
--- a/src/core/hle/service/set/system_settings_server.cpp
+++ b/src/core/hle/service/set/system_settings_server.cpp
@@ -67,13 +67,13 @@ Result GetFirmwareVersionImpl(FirmwareVersionFormat& out_firmware, Core::System&
67 const auto ver_file = romfs->GetFile("file"); 67 const auto ver_file = romfs->GetFile("file");
68 if (ver_file == nullptr) { 68 if (ver_file == nullptr) {
69 return early_exit_failure("The system version archive didn't contain the file 'file'.", 69 return early_exit_failure("The system version archive didn't contain the file 'file'.",
70 FileSys::ERROR_INVALID_ARGUMENT); 70 FileSys::ResultInvalidArgument);
71 } 71 }
72 72
73 auto data = ver_file->ReadAllBytes(); 73 auto data = ver_file->ReadAllBytes();
74 if (data.size() != sizeof(FirmwareVersionFormat)) { 74 if (data.size() != sizeof(FirmwareVersionFormat)) {
75 return early_exit_failure("The system version file 'file' was not the correct size.", 75 return early_exit_failure("The system version file 'file' was not the correct size.",
76 FileSys::ERROR_OUT_OF_BOUNDS); 76 FileSys::ResultOutOfRange);
77 } 77 }
78 78
79 std::memcpy(&out_firmware, data.data(), sizeof(FirmwareVersionFormat)); 79 std::memcpy(&out_firmware, data.data(), sizeof(FirmwareVersionFormat));