diff options
| author | 2019-03-13 10:01:54 -0400 | |
|---|---|---|
| committer | 2019-03-13 10:01:54 -0400 | |
| commit | e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a (patch) | |
| tree | 67ae631eb4c09c0b7ebc2496b2a55adadcd33f22 /src/core/hle/ipc_helpers.h | |
| parent | Merge pull request #2231 from ReinUsesLisp/fixup-bias (diff) | |
| parent | service/vi: Unstub GetDisplayService (diff) | |
| download | yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.gz yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.xz yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.zip | |
Merge pull request #2166 from lioncash/vi-init-service
service/vi: Unstub GetDisplayService
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
| -rw-r--r-- | src/core/hle/ipc_helpers.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/src/core/hle/ipc_helpers.h b/src/core/hle/ipc_helpers.h index 079283830..0d8368546 100644 --- a/src/core/hle/ipc_helpers.h +++ b/src/core/hle/ipc_helpers.h | |||
| @@ -362,6 +362,11 @@ inline u32 RequestParser::Pop() { | |||
| 362 | return cmdbuf[index++]; | 362 | return cmdbuf[index++]; |
| 363 | } | 363 | } |
| 364 | 364 | ||
| 365 | template <> | ||
| 366 | inline s32 RequestParser::Pop() { | ||
| 367 | return static_cast<s32>(Pop<u32>()); | ||
| 368 | } | ||
| 369 | |||
| 365 | template <typename T> | 370 | template <typename T> |
| 366 | void RequestParser::PopRaw(T& value) { | 371 | void RequestParser::PopRaw(T& value) { |
| 367 | std::memcpy(&value, cmdbuf + index, sizeof(T)); | 372 | std::memcpy(&value, cmdbuf + index, sizeof(T)); |
| @@ -393,6 +398,16 @@ inline u64 RequestParser::Pop() { | |||
| 393 | } | 398 | } |
| 394 | 399 | ||
| 395 | template <> | 400 | template <> |
| 401 | inline s8 RequestParser::Pop() { | ||
| 402 | return static_cast<s8>(Pop<u8>()); | ||
| 403 | } | ||
| 404 | |||
| 405 | template <> | ||
| 406 | inline s16 RequestParser::Pop() { | ||
| 407 | return static_cast<s16>(Pop<u16>()); | ||
| 408 | } | ||
| 409 | |||
| 410 | template <> | ||
| 396 | inline s64 RequestParser::Pop() { | 411 | inline s64 RequestParser::Pop() { |
| 397 | return static_cast<s64>(Pop<u64>()); | 412 | return static_cast<s64>(Pop<u64>()); |
| 398 | } | 413 | } |