diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/pm/pm.cpp | 4 | ||||
| -rw-r--r-- | src/core/hle/service/pm/pm.h | 7 |
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 | ||
| 31 | class DebugMonitor final : public ServiceFramework<DebugMonitor> { | 33 | class 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 | ||
| 11 | namespace Service::PM { | 11 | namespace Service::PM { |
| 12 | enum class SystemBootMode : u32 { Normal = 0, Maintenance = 1 }; | 12 | |
| 13 | enum 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. |
| 14 | void InstallInterfaces(SM::ServiceManager& service_manager); | 19 | void InstallInterfaces(SM::ServiceManager& service_manager); |
| 15 | 20 | ||