mirror of
https://github.com/switchbrew/libnx.git
synced 2025-07-04 18:42:15 +02:00
pmbm: return enum instead of u32
This commit is contained in:
parent
515f7db050
commit
c50a32a3b7
@ -94,5 +94,5 @@ Result pmshellGetApplicationPid(u64* pid_out);
|
|||||||
Result pmshellBoostSystemMemoryResourceLimit(u64 boost_size);
|
Result pmshellBoostSystemMemoryResourceLimit(u64 boost_size);
|
||||||
Result pmshellBoostSystemThreadResourceLimit(void);
|
Result pmshellBoostSystemThreadResourceLimit(void);
|
||||||
|
|
||||||
Result pmbmGetBootMode(u32 *out);
|
Result pmbmGetBootMode(PmBootMode *out);
|
||||||
Result pmbmSetMaintenanceBoot(void);
|
Result pmbmSetMaintenanceBoot(void);
|
||||||
|
@ -769,7 +769,7 @@ Result pmshellBoostSystemThreadResourceLimit(void) {
|
|||||||
return rc;
|
return rc;
|
||||||
}
|
}
|
||||||
|
|
||||||
Result pmbmGetBootMode(u32 *out) {
|
Result pmbmGetBootMode(PmBootMode *out) {
|
||||||
IpcCommand c;
|
IpcCommand c;
|
||||||
ipcInitialize(&c);
|
ipcInitialize(&c);
|
||||||
|
|
||||||
@ -798,7 +798,7 @@ Result pmbmGetBootMode(u32 *out) {
|
|||||||
rc = resp->result;
|
rc = resp->result;
|
||||||
|
|
||||||
if (R_SUCCEEDED(rc)) {
|
if (R_SUCCEEDED(rc)) {
|
||||||
*out = resp->boot_mode;
|
*out = (PmBootMode)resp->boot_mode;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user