diff options
Diffstat (limited to 'src')
| -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: | |||
| 217 | /// Push /// | 217 | /// Push /// |
| 218 | 218 | ||
| 219 | template <> | 219 | template <> |
| 220 | inline void ResponseBuilder::Push(s32 value) { | ||
| 221 | cmdbuf[index++] = static_cast<u32>(value); | ||
| 222 | } | ||
| 223 | |||
| 224 | template <> | ||
| 220 | inline void ResponseBuilder::Push(u32 value) { | 225 | inline void ResponseBuilder::Push(u32 value) { |
| 221 | cmdbuf[index++] = value; | 226 | cmdbuf[index++] = value; |
| 222 | } | 227 | } |
| @@ -235,10 +240,27 @@ inline void ResponseBuilder::Push(ResultCode value) { | |||
| 235 | } | 240 | } |
| 236 | 241 | ||
| 237 | template <> | 242 | template <> |
| 243 | inline void ResponseBuilder::Push(s8 value) { | ||
| 244 | PushRaw(value); | ||
| 245 | } | ||
| 246 | |||
| 247 | template <> | ||
| 248 | inline void ResponseBuilder::Push(s16 value) { | ||
| 249 | PushRaw(value); | ||
| 250 | } | ||
| 251 | |||
| 252 | template <> | ||
| 253 | inline void ResponseBuilder::Push(s64 value) { | ||
| 254 | Push(static_cast<u32>(value)); | ||
| 255 | Push(static_cast<u32>(value >> 32)); | ||
| 256 | } | ||
| 257 | |||
| 258 | template <> | ||
| 238 | inline void ResponseBuilder::Push(u8 value) { | 259 | inline void ResponseBuilder::Push(u8 value) { |
| 239 | PushRaw(value); | 260 | PushRaw(value); |
| 240 | } | 261 | } |
| 241 | 262 | ||
| 263 | |||
| 242 | template <> | 264 | template <> |
| 243 | inline void ResponseBuilder::Push(u16 value) { | 265 | inline void ResponseBuilder::Push(u16 value) { |
| 244 | PushRaw(value); | 266 | PushRaw(value); |