summaryrefslogtreecommitdiff
path: root/src/core/hle/service/pm
diff options
context:
space:
mode:
authorGravatar Lioncash2019-04-10 14:48:37 -0400
committerGravatar Lioncash2019-04-11 02:47:00 -0400
commitca96dc46767afcc6f6d9eedf68938c0a948cfecf (patch)
tree280b50ba4626e7e437ae1f560cf2b4effb3650c9 /src/core/hle/service/pm
parentMerge pull request #2354 from lioncash/header (diff)
downloadyuzu-ca96dc46767afcc6f6d9eedf68938c0a948cfecf.tar.gz
yuzu-ca96dc46767afcc6f6d9eedf68938c0a948cfecf.tar.xz
yuzu-ca96dc46767afcc6f6d9eedf68938c0a948cfecf.zip
service: Update service function tables
Updates function tables based off information from SwitchBrew.
Diffstat (limited to 'src/core/hle/service/pm')
-rw-r--r--src/core/hle/service/pm/pm.cpp21
1 files changed, 14 insertions, 7 deletions
diff --git a/src/core/hle/service/pm/pm.cpp b/src/core/hle/service/pm/pm.cpp
index 6b27dc4a3..ebcc41a43 100644
--- a/src/core/hle/service/pm/pm.cpp
+++ b/src/core/hle/service/pm/pm.cpp
@@ -42,15 +42,18 @@ private:
42class DebugMonitor final : public ServiceFramework<DebugMonitor> { 42class DebugMonitor final : public ServiceFramework<DebugMonitor> {
43public: 43public:
44 explicit DebugMonitor() : ServiceFramework{"pm:dmnt"} { 44 explicit DebugMonitor() : ServiceFramework{"pm:dmnt"} {
45 // clang-format off
45 static const FunctionInfo functions[] = { 46 static const FunctionInfo functions[] = {
46 {0, nullptr, "IsDebugMode"}, 47 {0, nullptr, "GetDebugProcesses"},
47 {1, nullptr, "GetDebugProcesses"}, 48 {1, nullptr, "StartDebugProcess"},
48 {2, nullptr, "StartDebugProcess"}, 49 {2, nullptr, "GetTitlePid"},
49 {3, nullptr, "GetTitlePid"}, 50 {3, nullptr, "EnableDebugForTitleId"},
50 {4, nullptr, "EnableDebugForTitleId"}, 51 {4, nullptr, "GetApplicationPid"},
51 {5, nullptr, "GetApplicationPid"}, 52 {5, nullptr, "EnableDebugForApplication"},
52 {6, nullptr, "EnableDebugForApplication"}, 53 {6, nullptr, "DisableDebug"},
53 }; 54 };
55 // clang-format on
56
54 RegisterHandlers(functions); 57 RegisterHandlers(functions);
55 } 58 }
56}; 59};
@@ -68,6 +71,7 @@ public:
68class Shell final : public ServiceFramework<Shell> { 71class Shell final : public ServiceFramework<Shell> {
69public: 72public:
70 explicit Shell() : ServiceFramework{"pm:shell"} { 73 explicit Shell() : ServiceFramework{"pm:shell"} {
74 // clang-format off
71 static const FunctionInfo functions[] = { 75 static const FunctionInfo functions[] = {
72 {0, nullptr, "LaunchProcess"}, 76 {0, nullptr, "LaunchProcess"},
73 {1, nullptr, "TerminateProcessByPid"}, 77 {1, nullptr, "TerminateProcessByPid"},
@@ -77,7 +81,10 @@ public:
77 {5, nullptr, "NotifyBootFinished"}, 81 {5, nullptr, "NotifyBootFinished"},
78 {6, nullptr, "GetApplicationPid"}, 82 {6, nullptr, "GetApplicationPid"},
79 {7, nullptr, "BoostSystemMemoryResourceLimit"}, 83 {7, nullptr, "BoostSystemMemoryResourceLimit"},
84 {8, nullptr, "EnableAdditionalSystemThreads"},
80 }; 85 };
86 // clang-format on
87
81 RegisterHandlers(functions); 88 RegisterHandlers(functions);
82 } 89 }
83}; 90};