diff options
author | Lioncash <mathew1800@gmail.com> | 2019-01-29 19:09:29 +0100 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2019-01-29 19:09:32 +0100 |
commit | ac603cf1309783ea0647b032c845679784d24227 (patch) | |
tree | 782ad029f1a88bdad90e9a811331fb87305e90fe /src/core | |
parent | Merge pull request #2063 from lioncash/pessimizing (diff) | |
download | yuzu-ac603cf1309783ea0647b032c845679784d24227.tar yuzu-ac603cf1309783ea0647b032c845679784d24227.tar.gz yuzu-ac603cf1309783ea0647b032c845679784d24227.tar.bz2 yuzu-ac603cf1309783ea0647b032c845679784d24227.tar.lz yuzu-ac603cf1309783ea0647b032c845679784d24227.tar.xz yuzu-ac603cf1309783ea0647b032c845679784d24227.tar.zst yuzu-ac603cf1309783ea0647b032c845679784d24227.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/ipc_helpers.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 0d6c85aed..eba2f5d02 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h @@ -217,6 +217,11 @@ private: /// Push /// template <> +inline void ResponseBuilder::Push(s32 value) { + cmdbuf[index++] = static_cast<u32>(value); +} + +template <> inline void ResponseBuilder::Push(u32 value) { cmdbuf[index++] = value; } @@ -235,10 +240,27 @@ inline void ResponseBuilder::Push(ResultCode value) { } template <> +inline void ResponseBuilder::Push(s8 value) { + PushRaw(value); +} + +template <> +inline void ResponseBuilder::Push(s16 value) { + PushRaw(value); +} + +template <> +inline void ResponseBuilder::Push(s64 value) { + Push(static_cast<u32>(value)); + Push(static_cast<u32>(value >> 32)); +} + +template <> inline void ResponseBuilder::Push(u8 value) { PushRaw(value); } + template <> inline void ResponseBuilder::Push(u16 value) { PushRaw(value); |