]> Chaos Git - corbenik/ctrulib.git/commitdiff
Change svcKernelSetStateSignature
authorTuxSH <tuxsh@sfr.fr>
Sun, 18 Dec 2016 22:35:20 +0000 (23:35 +0100)
committerfincs <fincs.alt1@gmail.com>
Sun, 18 Dec 2016 22:52:12 +0000 (23:52 +0100)
`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

index 6dfb6fad3d711091b7a22bd164805ca880badbbc..32a8513c66056ef7665ffeef1b0996c7307fb3ae 100644 (file)
@@ -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, ...);
 ///@}