mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
set: Fix serviceDispatch misuse, add docs
This commit is contained in:
parent
06ef9205c9
commit
80c22761d4
@ -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;
|
||||
|
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user