summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/core/hle/service/pm/pm.cpp4
-rw-r--r--src/core/hle/service/pm/pm.h7
2 files changed, 9 insertions, 2 deletions
diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp
index 53e7da9c3..40655532c 100644
--- a/src/core/hle/service/pm/pm.cpp
+++ b/src/core/hle/service/pm/pm.cpp
@@ -24,8 +24,10 @@ private:
24 24
25 IPC::ResponseBuilder rb{ctx, 3}; 25 IPC::ResponseBuilder rb{ctx, 3};
26 rb.Push(RESULT_SUCCESS); 26 rb.Push(RESULT_SUCCESS);
27 rb.Push<u32>(static_cast<u32>(SystemBootMode::Normal)); // Normal boot mode 27 rb.PushEnum(boot_mode);
28 } 28 }
29
30 SystemBootMode boot_mode = SystemBootMode::Normal;
29}; 31};
30 32
31class DebugMonitor final : public ServiceFramework<DebugMonitor> { 33class DebugMonitor final : public ServiceFramework<DebugMonitor> {
diff --git a/src/core/hle/service/pm/pm.h b/src/core/hle/service/pm/pm.h
index 370f2ed72..cc8d3f215 100644
--- a/src/core/hle/service/pm/pm.h
+++ b/src/core/hle/service/pm/pm.h
@@ -9,7 +9,12 @@ class ServiceManager;
9} 9}
10 10
11namespace Service::PM { 11namespace Service::PM {
12enum class SystemBootMode : u32 { Normal = 0, Maintenance = 1 }; 12
13enum class SystemBootMode {
14 Normal,
15 Maintenance,
16};
17
13/// Registers all PM services with the specified service manager. 18/// Registers all PM services with the specified service manager.
14void InstallInterfaces(SM::ServiceManager& service_manager); 19void InstallInterfaces(SM::ServiceManager& service_manager);
15 20