From: TuxSH Date: Sun, 18 Dec 2016 22:35:20 +0000 (+0100) Subject: Change svcKernelSetStateSignature X-Git-Url: https://chaos.moe/g/?a=commitdiff_plain;h=34015acd3f239bfb6d0e614cc5dbbce6da987fd4;p=corbenik%2Fctrulib.git 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 --- 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, ...); ///@}