set: Fix serviceDispatch misuse, add docs

This commit is contained in:
shchmue 2020-03-10 08:47:04 -06:00
parent 06ef9205c9
commit 80c22761d4
2 changed files with 4 additions and 4 deletions

View File

@ -123,7 +123,7 @@ typedef struct {
u8 padding[7]; u8 padding[7];
} FsTimeStampRaw; } 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 { typedef struct {
u8 key[0x10]; u8 key[0x10];
} FsArchiveMacKey; } FsArchiveMacKey;

View File

@ -1066,7 +1066,7 @@ Result setsysGetRequiresRunRepairTimeReviser(bool *out) {
if (hosversionBefore(5,0,0)) if (hosversionBefore(5,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return _setCmdNoInOutBool(&g_setsysSrv, *out, 141); return _setCmdNoInOutBool(&g_setsysSrv, out, 141);
} }
Result setsysSetRequiresRunRepairTimeReviser(bool flag) { Result setsysSetRequiresRunRepairTimeReviser(bool flag) {
@ -1107,7 +1107,7 @@ Result setsysSetConsoleSixAxisSensorAngularVelocityTimeBias(const SetSysConsoleS
if (hosversionBefore(5,0,0)) if (hosversionBefore(5,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return serviceDispatchOut(&g_setsysSrv, 146, *bias); return serviceDispatchIn(&g_setsysSrv, 146, *bias);
} }
Result setsysGetConsoleSixAxisSensorAngularAcceleration(SetSysConsoleSixAxisSensorAngularAcceleration *out) { Result setsysGetConsoleSixAxisSensorAngularAcceleration(SetSysConsoleSixAxisSensorAngularAcceleration *out) {
@ -1121,7 +1121,7 @@ Result setsysSetConsoleSixAxisSensorAngularAcceleration(const SetSysConsoleSixAx
if (hosversionBefore(5,0,0)) if (hosversionBefore(5,0,0))
return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer); return MAKERESULT(Module_Libnx, LibnxError_IncompatSysVer);
return serviceDispatchOut(&g_setsysSrv, 148, *acceleration); return serviceDispatchIn(&g_setsysSrv, 148, *acceleration);
} }
Result setsysGetRebootlessSystemUpdateVersion(SetSysRebootlessSystemUpdateVersion *out) { Result setsysGetRebootlessSystemUpdateVersion(SetSysRebootlessSystemUpdateVersion *out) {