mirror of
https://github.com/switchbrew/libnx.git
synced 2025-06-22 13:02:38 +02:00
Add support for setting/getting the Internet time sync flag.
(IsUserSystemClockAutomaticCorrectionEnabled and SetUserSystemClockAutomaticCorrectionEnabled.)
This commit is contained in:
parent
bcac85852a
commit
cd9f29fc8e
@ -211,6 +211,18 @@ Result setsysGetQuestFlag(bool *out);
|
|||||||
*/
|
*/
|
||||||
Result setsysSetQuestFlag(bool flag);
|
Result setsysSetQuestFlag(bool flag);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief IsUserSystemClockAutomaticCorrectionEnabled
|
||||||
|
* @param[out] out Output flag.
|
||||||
|
*/
|
||||||
|
Result setsysIsUserSystemClockAutomaticCorrectionEnabled(bool *out);
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @brief SetUserSystemClockAutomaticCorrectionEnabled
|
||||||
|
* @param[in] flag Input flag.
|
||||||
|
*/
|
||||||
|
Result setsysSetUserSystemClockAutomaticCorrectionEnabled(bool flag);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* @brief GetUsb30EnableFlag
|
* @brief GetUsb30EnableFlag
|
||||||
* @param[out] out Output flag.
|
* @param[out] out Output flag.
|
||||||
|
@ -289,6 +289,14 @@ Result setsysSetQuestFlag(bool flag) {
|
|||||||
return _setCmdInBoolNoOut(&g_setsysSrv, flag, 48);
|
return _setCmdInBoolNoOut(&g_setsysSrv, flag, 48);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Result setsysIsUserSystemClockAutomaticCorrectionEnabled(bool *out) {
|
||||||
|
return _setCmdNoInOutBool(&g_setsysSrv, out, 60);
|
||||||
|
}
|
||||||
|
|
||||||
|
Result setsysSetUserSystemClockAutomaticCorrectionEnabled(bool flag) {
|
||||||
|
return _setCmdInBoolNoOut(&g_setsysSrv, flag, 61);
|
||||||
|
}
|
||||||
|
|
||||||
Result setsysGetUsb30EnableFlag(bool *out) {
|
Result setsysGetUsb30EnableFlag(bool *out) {
|
||||||
return _setCmdNoInOutBool(&g_setsysSrv, out, 65);
|
return _setCmdNoInOutBool(&g_setsysSrv, out, 65);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user