summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-01-28 17:48:08 +0100
committerLioncash <mathew1800@gmail.com>2019-01-28 17:48:11 +0100
commit932922f67f6b2a6be05dd8d6c6966397367f2ca2 (patch)
tree2073e97d60489a10219cfb5e3bf9d21372898d1d /src/core/hle/service
parentservice/pm: Tidy up functionality related to SystemBootMode (diff)
downloadyuzu-932922f67f6b2a6be05dd8d6c6966397367f2ca2.tar
yuzu-932922f67f6b2a6be05dd8d6c6966397367f2ca2.tar.gz
yuzu-932922f67f6b2a6be05dd8d6c6966397367f2ca2.tar.bz2
yuzu-932922f67f6b2a6be05dd8d6c6966397367f2ca2.tar.lz
yuzu-932922f67f6b2a6be05dd8d6c6966397367f2ca2.tar.xz
yuzu-932922f67f6b2a6be05dd8d6c6966397367f2ca2.tar.zst
yuzu-932922f67f6b2a6be05dd8d6c6966397367f2ca2.zip
Diffstat (limited to 'src/core/hle/service')
-rw-r--r--src/core/hle/service/pm/pm.cpp11
1 files changed, 10 insertions, 1 deletions
diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp
index 40655532c..6b27dc4a3 100644
--- a/src/core/hle/service/pm/pm.cpp
+++ b/src/core/hle/service/pm/pm.cpp
@@ -13,7 +13,7 @@ public:
explicit BootMode() : ServiceFramework{"pm:bm"} {
static const FunctionInfo functions[] = {
{0, &BootMode::GetBootMode, "GetBootMode"},
- {1, nullptr, "SetMaintenanceBoot"},
+ {1, &BootMode::SetMaintenanceBoot, "SetMaintenanceBoot"},
};
RegisterHandlers(functions);
}
@@ -27,6 +27,15 @@ private:
rb.PushEnum(boot_mode);
}
+ void SetMaintenanceBoot(Kernel::HLERequestContext& ctx) {
+ LOG_DEBUG(Service_PM, "called");
+
+ boot_mode = SystemBootMode::Maintenance;
+
+ IPC::ResponseBuilder rb{ctx, 2};
+ rb.Push(RESULT_SUCCESS);
+ }
+
SystemBootMode boot_mode = SystemBootMode::Normal;
};