From 27009fcf19de1f45ab929cf49f7c9f16c2200357 Mon Sep 17 00:00:00 2001 From: Joel16 Date: Fri, 18 May 2018 19:03:25 -0500 Subject: [PATCH] Document params and change name to setsys --- nx/include/switch/services/set.h | 7 +++++-- nx/source/services/set.c | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/nx/include/switch/services/set.h b/nx/include/switch/services/set.h index c77e3e5d..4c7eb3d2 100644 --- a/nx/include/switch/services/set.h +++ b/nx/include/switch/services/set.h @@ -67,5 +67,8 @@ void setsysExit(void); /// Gets the current system theme. Result setsysGetColorSetId(ColorSetId* out); -/// Gets the serial number. -Result setGetSerialNumber(char *serial); +/** + * @brief Gets the system's serial number. + * @param serial Pointer to output the serial to. (The buffer size needs to be at least 0x18 bytes) + */ +Result setsysGetSerialNumber(char *serial); diff --git a/nx/source/services/set.c b/nx/source/services/set.c index 9e815bb0..40c9c822 100644 --- a/nx/source/services/set.c +++ b/nx/source/services/set.c @@ -347,7 +347,7 @@ Result setsysGetColorSetId(ColorSetId* out) } -Result setGetSerialNumber(char *serial) { +Result setsysGetSerialNumber(char *serial) { IpcCommand c; ipcInitialize(&c);