summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/set
diff options
context:
space:
mode:
authorFearlessTobi <thm.frey@gmail.com>2024-01-18 21:55:15 +0100
committerLiam <byteslice@airmail.cc>2024-01-25 22:42:06 +0100
commitc60ab6bbf61021e247c2574a771d3d88a77ed398 (patch)
tree27e6b6b5d6afaabb7c6d1ba93ad63f140a70a65c /src/core/hle/service/set
parentfs: Replace Mode enum by OpenMode enum (diff)
downloadyuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar.gz
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar.bz2
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar.lz
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar.xz
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.tar.zst
yuzu-c60ab6bbf61021e247c2574a771d3d88a77ed398.zip
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&
const auto ver_file = romfs->GetFile("file");
if (ver_file == nullptr) {
return early_exit_failure("The system version archive didn't contain the file 'file'.",
- FileSys::ERROR_INVALID_ARGUMENT);
+ FileSys::ResultInvalidArgument);
}
auto data = ver_file->ReadAllBytes();
if (data.size() != sizeof(FirmwareVersionFormat)) {
return early_exit_failure("The system version file 'file' was not the correct size.",
- FileSys::ERROR_OUT_OF_BOUNDS);
+ FileSys::ResultOutOfRange);
}
std::memcpy(&out_firmware, data.data(), sizeof(FirmwareVersionFormat));