diff options
author | Subv <subv2112@gmail.com> | 2018-01-07 15:56:57 +0100 |
---|---|---|
committer | bunnei <bunneidev@gmail.com> | 2018-01-07 23:11:54 +0100 |
commit | 80f6df5414517e575037661ffb903232bf3e590c (patch) | |
tree | 8be1c03aab7a52034363beb19c541ff442ebfd2f /src/core/hle/ipc_helpers.h | |
parent | IPC: Add functions to read the input move/copy objects from an IPC request. (diff) | |
download | yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.gz yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.bz2 yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.lz yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.xz yuzu-80f6df5414517e575037661ffb903232bf3e590c.tar.zst yuzu-80f6df5414517e575037661ffb903232bf3e590c.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 12 |
1 files changed, 7 insertions, 5 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index e5b296d60..b58e33a69 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -143,6 +143,13 @@ void RequestBuilder::PushRaw(const T& value) { } template <> +inline void RequestBuilder::Push(ResultCode value) { + // Result codes are actually 64-bit in the IPC buffer, but only the high part is discarded. + Push(value.raw); + Push<u32>(0); +} + +template <> inline void RequestBuilder::Push(u8 value) { PushRaw(value); } @@ -163,11 +170,6 @@ inline void RequestBuilder::Push(bool value) { Push(static_cast<u8>(value)); } -template <> -inline void RequestBuilder::Push(ResultCode value) { - Push(value.raw); -} - template <typename First, typename... Other> void RequestBuilder::Push(const First& first_value, const Other&... other_values) { Push(first_value); |