From 80c22761d48a5a9f8e15b5d909cd389670fde268 Mon Sep 17 00:00:00 2001 From: shchmue Date: Tue, 10 Mar 2020 08:47:04 -0600 Subject: [PATCH] set: Fix serviceDispatch misuse, add docs --- nx/include/switch/services/fs.h | 2 +- nx/source/services/set.c | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/nx/include/switch/services/fs.h b/nx/include/switch/services/fs.h index 814f68f5..3b4ebcc8 100644 --- a/nx/include/switch/services/fs.h +++ b/nx/include/switch/services/fs.h @@ -123,7 +123,7 @@ typedef struct { u8 padding[7]; } FsTimeStampRaw; -/// This is nn::fssystem::ArchiveMacKey. Returned by \ref setsysGetThemeKey. Does not appear to be in use elsewhere. +/// This is nn::fssystem::ArchiveMacKey. Used by \ref setsysGetThemeKey and \ref setsysSetThemeKey. Does not appear to be in use elsewhere. typedef struct { u8 key[0x10]; } FsArchiveMacKey; diff --git a/nx/source/services/set.c b/nx/source/services/set.c index 2d7207e7..8e7dbb07 100644 --- a/nx/source/services/set.c +++ b/nx/source/services/set.c @@ -1066,7 +1066,7 @@ Result setsysGetRequiresRunRepairTimeReviser(bool *out) { if (hosversionBefore(5,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); - return _setCmdNoInOutBool(&g_setsysSrv, *out, 141); + return _setCmdNoInOutBool(&g_setsysSrv, out, 141); } Result setsysSetRequiresRunRepairTimeReviser(bool flag) { @@ -1107,7 +1107,7 @@ Result setsysSetConsoleSixAxisSensorAngularVelocityTimeBias(const SetSysConsoleS if (hosversionBefore(5,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); - return serviceDispatchOut(&g_setsysSrv, 146, *bias); + return serviceDispatchIn(&g_setsysSrv, 146, *bias); } Result setsysGetConsoleSixAxisSensorAngularAcceleration(SetSysConsoleSixAxisSensorAngularAcceleration *out) { @@ -1121,7 +1121,7 @@ Result setsysSetConsoleSixAxisSensorAngularAcceleration(const SetSysConsoleSixAx if (hosversionBefore(5,0,0)) return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); - return serviceDispatchOut(&g_setsysSrv, 148, *acceleration); + return serviceDispatchIn(&g_setsysSrv, 148, *acceleration); } Result setsysGetRebootlessSystemUpdateVersion(SetSysRebootlessSystemUpdateVersion *out) {