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