summaryrefslogtreecommitdiffstats
path: root/src/core
diff options
context:
space:
mode:
authorLioncash <mathew1800@gmail.com>2019-01-28 17:44:35 +0100
committerLioncash <mathew1800@gmail.com>2019-01-28 17:44:37 +0100
commitcb2ce9924a6ac65cebc0ebe1014cf6eb459506e5 (patch)
treebd6fcb47060f5ceb241108be3593f0ee12070446 /src/core
parentMerge pull request #2064 from lioncash/vi-stub (diff)
downloadyuzu-cb2ce9924a6ac65cebc0ebe1014cf6eb459506e5.tar
yuzu-cb2ce9924a6ac65cebc0ebe1014cf6eb459506e5.tar.gz
yuzu-cb2ce9924a6ac65cebc0ebe1014cf6eb459506e5.tar.bz2
yuzu-cb2ce9924a6ac65cebc0ebe1014cf6eb459506e5.tar.lz
yuzu-cb2ce9924a6ac65cebc0ebe1014cf6eb459506e5.tar.xz
yuzu-cb2ce9924a6ac65cebc0ebe1014cf6eb459506e5.tar.zst
yuzu-cb2ce9924a6ac65cebc0ebe1014cf6eb459506e5.zip
Diffstat (limited to 'src/core')
-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:
IPC::ResponseBuilder rb{ctx, 3};
rb.Push(RESULT_SUCCESS);
- rb.Push<u32>(static_cast<u32>(SystemBootMode::Normal)); // Normal boot mode
+ rb.PushEnum(boot_mode);
}
+
+ SystemBootMode boot_mode = SystemBootMode::Normal;
};
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;
}
namespace Service::PM {
-enum class SystemBootMode : u32 { Normal = 0, Maintenance = 1 };
+
+enum class SystemBootMode {
+ Normal,
+ Maintenance,
+};
+
/// Registers all PM services with the specified service manager.
void InstallInterfaces(SM::ServiceManager& service_manager);