mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 02:22:15 +02:00
address review
This commit is contained in:
parent
d784f5a4cc
commit
ee780c9991
@ -148,8 +148,8 @@ Result newsGetSavedataUsage(u64 *current, u64 *total) {
|
|||||||
Result rc = serviceDispatchOut(&g_newsSrv, 30110, out);
|
Result rc = serviceDispatchOut(&g_newsSrv, 30110, out);
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc)) {
|
if (R_SUCCEEDED(rc)) {
|
||||||
*current = out.current;
|
if (current) *current = out.current;
|
||||||
*total = out.total;
|
if (total) *total = out.total;
|
||||||
}
|
}
|
||||||
|
|
||||||
return rc;
|
return rc;
|
||||||
@ -158,7 +158,7 @@ Result newsGetSavedataUsage(u64 *current, u64 *total) {
|
|||||||
Result newsIsSystemUpdateRequired(bool *out) {
|
Result newsIsSystemUpdateRequired(bool *out) {
|
||||||
u8 tmp=0;
|
u8 tmp=0;
|
||||||
Result rc = serviceDispatchOut(&g_newsSrv, 30200, tmp);
|
Result rc = serviceDispatchOut(&g_newsSrv, 30200, tmp);
|
||||||
if (R_SUCCEEDED(rc)) *out = tmp;
|
if (R_SUCCEEDED(rc) && out) *out = tmp & 1;
|
||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user