summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Hexagon122018-04-10 21:03:23 +0300
committerGravatar GitHub2018-04-10 21:03:23 +0300
commit88f1fe79c64cd2d95c693ace5925e8c8d7395dc1 (patch)
tree02fabed7dc8f70dc986168a390f12fd2c94825d7 /src
parentUpdated nvmemp with new service names. (diff)
downloadyuzu-88f1fe79c64cd2d95c693ace5925e8c8d7395dc1.tar.gz
yuzu-88f1fe79c64cd2d95c693ace5925e8c8d7395dc1.tar.xz
yuzu-88f1fe79c64cd2d95c693ace5925e8c8d7395dc1.zip
Updated pctl:a with new service names.
Diffstat (limited to 'src')
-rw-r--r--src/core/hle/service/pctl/pctl_a.cpp105
1 files changed, 101 insertions, 4 deletions
diff --git a/src/core/hle/service/pctl/pctl_a.cpp b/src/core/hle/service/pctl/pctl_a.cpp
index c65fffa07..3d0474105 100644
--- a/src/core/hle/service/pctl/pctl_a.cpp
+++ b/src/core/hle/service/pctl/pctl_a.cpp
@@ -11,10 +11,106 @@ namespace PCTL {
11 11
12class IParentalControlService final : public ServiceFramework<IParentalControlService> { 12class IParentalControlService final : public ServiceFramework<IParentalControlService> {
13public: 13public:
14 IParentalControlService() : ServiceFramework("IParentalControlService") {} 14 IParentalControlService() : ServiceFramework("IParentalControlService") {
15}; 15 static const FunctionInfo functions[] = {
16 {1, nullptr, "Initialize"},
17 {1001, nullptr, "CheckFreeCommunicationPermission"},
18 {1002, nullptr, "ConfirmLaunchApplicationPermission"},
19 {1003, nullptr, "ConfirmResumeApplicationPermission"},
20 {1004, nullptr, "ConfirmSnsPostPermission"},
21 {1005, nullptr, "ConfirmSystemSettingsPermission"},
22 {1006, nullptr, "IsRestrictionTemporaryUnlocked"},
23 {1007, nullptr, "RevertRestrictionTemporaryUnlocked"},
24 {1008, nullptr, "EnterRestrictedSystemSettings"},
25 {1009, nullptr, "LeaveRestrictedSystemSettings"},
26 {1010, nullptr, "IsRestrictedSystemSettingsEntered"},
27 {1011, nullptr, "RevertRestrictedSystemSettingsEntered"},
28 {1012, nullptr, "GetRestrictedFeatures"},
29 {1013, nullptr, "ConfirmStereoVisionPermission"},
30 {1014, nullptr, "ConfirmPlayableApplicationVideoOld"},
31 {1015, nullptr, "ConfirmPlayableApplicationVideo"},
32 {1031, nullptr, "IsRestrictionEnabled"},
33 {1032, nullptr, "GetSafetyLevel"},
34 {1033, nullptr, "SetSafetyLevel"},
35 {1034, nullptr, "GetSafetyLevelSettings"},
36 {1035, nullptr, "GetCurrentSettings"},
37 {1036, nullptr, "SetCustomSafetyLevelSettings"},
38 {1037, nullptr, "GetDefaultRatingOrganization"},
39 {1038, nullptr, "SetDefaultRatingOrganization"},
40 {1039, nullptr, "GetFreeCommunicationApplicationListCount"},
41 {1042, nullptr, "AddToFreeCommunicationApplicationList"},
42 {1043, nullptr, "DeleteSettings"},
43 {1044, nullptr, "GetFreeCommunicationApplicationList"},
44 {1045, nullptr, "UpdateFreeCommunicationApplicationList"},
45 {1046, nullptr, "DisableFeaturesForReset"},
46 {1047, nullptr, "NotifyApplicationDownloadStarted"},
47 {1061, nullptr, "ConfirmStereoVisionRestrictionConfigurable"},
48 {1062, nullptr, "GetStereoVisionRestriction"},
49 {1063, nullptr, "SetStereoVisionRestriction"},
50 {1064, nullptr, "ResetConfirmedStereoVisionPermission"},
51 {1065, nullptr, "IsStereoVisionPermitted"},
52 {1201, nullptr, "UnlockRestrictionTemporarily"},
53 {1202, nullptr, "UnlockSystemSettingsRestriction"},
54 {1203, nullptr, "SetPinCode"},
55 {1204, nullptr, "GenerateInquiryCode"},
56 {1205, nullptr, "CheckMasterKey"},
57 {1206, nullptr, "GetPinCodeLength"},
58 {1207, nullptr, "GetPinCodeChangedEvent"},
59 {1208, nullptr, "GetPinCode"},
60 {1403, nullptr, "IsPairingActive"},
61 {1406, nullptr, "GetSettingsLastUpdated"},
62 {1411, nullptr, "GetPairingAccountInfo"},
63 {1421, nullptr, "GetAccountNickname"},
64 {1424, nullptr, "GetAccountState"},
65 {1432, nullptr, "GetSynchronizationEvent"},
66 {1451, nullptr, "StartPlayTimer"},
67 {1452, nullptr, "StopPlayTimer"},
68 {1453, nullptr, "IsPlayTimerEnabled"},
69 {1454, nullptr, "GetPlayTimerRemainingTime"},
70 {1455, nullptr, "IsRestrictedByPlayTimer"},
71 {1456, nullptr, "GetPlayTimerSettings"},
72 {1457, nullptr, "GetPlayTimerEventToRequestSuspension"},
73 {1458, nullptr, "IsPlayTimerAlarmDisabled"},
74 {1471, nullptr, "NotifyWrongPinCodeInputManyTimes"},
75 {1472, nullptr, "CancelNetworkRequest"},
76 {1473, nullptr, "GetUnlinkedEvent"},
77 {1474, nullptr, "ClearUnlinkedEvent"},
78 {1601, nullptr, "DisableAllFeatures"},
79 {1602, nullptr, "PostEnableAllFeatures"},
80 {1603, nullptr, "IsAllFeaturesDisabled"},
81 {1901, nullptr, "DeleteFromFreeCommunicationApplicationListForDebug"},
82 {1902, nullptr, "ClearFreeCommunicationApplicationListForDebug"},
83 {1903, nullptr, "GetExemptApplicationListCountForDebug"},
84 {1904, nullptr, "GetExemptApplicationListForDebug"},
85 {1905, nullptr, "UpdateExemptApplicationListForDebug"},
86 {1906, nullptr, "AddToExemptApplicationListForDebug"},
87 {1907, nullptr, "DeleteFromExemptApplicationListForDebug"},
88 {1908, nullptr, "ClearExemptApplicationListForDebug"},
89 {1941, nullptr, "DeletePairing"},
90 {1951, nullptr, "SetPlayTimerSettingsForDebug"},
91 {1952, nullptr, "GetPlayTimerSpentTimeForTest"},
92 {1953, nullptr, "SetPlayTimerAlarmDisabledForDebug"},
93 {2001, nullptr, "RequestPairingAsync"},
94 {2002, nullptr, "FinishRequestPairing"},
95 {2003, nullptr, "AuthorizePairingAsync"},
96 {2004, nullptr, "FinishAuthorizePairing"},
97 {2005, nullptr, "RetrievePairingInfoAsync"},
98 {2006, nullptr, "FinishRetrievePairingInfo"},
99 {2007, nullptr, "UnlinkPairingAsync"},
100 {2008, nullptr, "FinishUnlinkPairing"},
101 {2009, nullptr, "GetAccountMiiImageAsync"},
102 {2010, nullptr, "FinishGetAccountMiiImage"},
103 {2011, nullptr, "GetAccountMiiImageContentTypeAsync"},
104 {2012, nullptr, "FinishGetAccountMiiImageContentType"},
105 {2013, nullptr, "SynchronizeParentalControlSettingsAsync"},
106 {2014, nullptr, "FinishSynchronizeParentalControlSettings"},
107 {2015, nullptr, "FinishSynchronizeParentalControlSettingsWithLastUpdated"},
108 {2016, nullptr, "RequestUpdateExemptionListAsync"},
109 };
110 RegisterHandlers(functions);
111}
16 112
17void PCTL_A::GetService(Kernel::HLERequestContext& ctx) { 113void PCTL_A::CreateService(Kernel::HLERequestContext& ctx) {
18 IPC::ResponseBuilder rb{ctx, 2, 0, 1}; 114 IPC::ResponseBuilder rb{ctx, 2, 0, 1};
19 rb.Push(RESULT_SUCCESS); 115 rb.Push(RESULT_SUCCESS);
20 rb.PushIpcInterface<IParentalControlService>(); 116 rb.PushIpcInterface<IParentalControlService>();
@@ -23,7 +119,8 @@ void PCTL_A::GetService(Kernel::HLERequestContext& ctx) {
23 119
24PCTL_A::PCTL_A() : ServiceFramework("pctl:a") { 120PCTL_A::PCTL_A() : ServiceFramework("pctl:a") {
25 static const FunctionInfo functions[] = { 121 static const FunctionInfo functions[] = {
26 {0, &PCTL_A::GetService, "GetService"}, 122 {0, &PCTL_A::CreateService, "CreateService"},
123 {1, nullptr, "CreateServiceWithoutInitialize"},
27 }; 124 };
28 RegisterHandlers(functions); 125 RegisterHandlers(functions);
29} 126}