From 34015acd3f239bfb6d0e614cc5dbbce6da987fd4 Mon Sep 17 00:00:00 2001 From: TuxSH Date: Sun, 18 Dec 2016 23:35:20 +0100 Subject: [PATCH] Change svcKernelSetStateSignature `svcKernelSetState` behaves like a variadic function. This change, in addition of not breaking anything, would allow writing things like: ```c svcKernelSetState(0, 0x0004013800000002ULL, 0)```` which is more explicit than what was used before --- libctru/include/3ds/svc.h | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/libctru/include/3ds/svc.h b/libctru/include/3ds/svc.h index 6dfb6fa..32a8513 100644 --- a/libctru/include/3ds/svc.h +++ b/libctru/include/3ds/svc.h @@ -907,12 +907,9 @@ Result svcGetSystemInfo(s64* out, u32 type, s32 param); /** * @brief Sets the current kernel state. - * @param type Type of state to set. - * @param param0 First parameter of the state. - * @param param1 Second parameter of the state. - * @param param2 Third parameter of the state. + * @param type Type of state to set (the other parameters depend on it). */ -Result svcKernelSetState(u32 type, u32 param0, u32 param1, u32 param2); +Result svcKernelSetState(u32 type, ...); ///@}