summaryrefslogtreecommitdiffstats
path: root/src/core/hle/ipc_helpers.h
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2019-03-13 15:01:54 +0100
committerGitHub <noreply@github.com>2019-03-13 15:01:54 +0100
commite8a21f52769ceef8aefdd06c54ca7026ab1a3d9a (patch)
tree67ae631eb4c09c0b7ebc2496b2a55adadcd33f22 /src/core/hle/ipc_helpers.h
parentMerge pull request #2231 from ReinUsesLisp/fixup-bias (diff)
parentservice/vi: Unstub GetDisplayService (diff)
downloadyuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.gz
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.bz2
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.lz
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.xz
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.tar.zst
yuzu-e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a.zip
Diffstat (limited to 'src/core/hle/ipc_helpers.h')
-rw-r--r--src/core/hle/ipc_helpers.h15
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() {
return cmdbuf[index++];
}
+template <>
+inline s32 RequestParser::Pop() {
+ return static_cast<s32>(Pop<u32>());
+}
+
template <typename T>
void RequestParser::PopRaw(T& value) {
std::memcpy(&value, cmdbuf + index, sizeof(T));
@@ -393,6 +398,16 @@ inline u64 RequestParser::Pop() {
}
template <>
+inline s8 RequestParser::Pop() {
+ return static_cast<s8>(Pop<u8>());
+}
+
+template <>
+inline s16 RequestParser::Pop() {
+ return static_cast<s16>(Pop<u16>());
+}
+
+template <>
inline s64 RequestParser::Pop() {
return static_cast<s64>(Pop<u64>());
}