diff --git a/nx/include/switch/services/pm.h b/nx/include/switch/services/pm.h index 39ed72ff..90561b98 100644 --- a/nx/include/switch/services/pm.h +++ b/nx/include/switch/services/pm.h @@ -94,5 +94,5 @@ Result pmshellGetApplicationPid(u64* pid_out); Result pmshellBoostSystemMemoryResourceLimit(u64 boost_size); Result pmshellBoostSystemThreadResourceLimit(void); -Result pmbmGetBootMode(u32 *out); +Result pmbmGetBootMode(PmBootMode *out); Result pmbmSetMaintenanceBoot(void); diff --git a/nx/source/services/pm.c b/nx/source/services/pm.c index 6b5284d6..cacfcdea 100644 --- a/nx/source/services/pm.c +++ b/nx/source/services/pm.c @@ -769,7 +769,7 @@ Result pmshellBoostSystemThreadResourceLimit(void) { return rc; } -Result pmbmGetBootMode(u32 *out) { +Result pmbmGetBootMode(PmBootMode *out) { IpcCommand c; ipcInitialize(&c); @@ -798,7 +798,7 @@ Result pmbmGetBootMode(u32 *out) { rc = resp->result; if (R_SUCCEEDED(rc)) { - *out = resp->boot_mode; + *out = (PmBootMode)resp->boot_mode; } }