diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/service/am/am.cpp | 9 | ||||
| -rw-r--r-- | src/core/hle/service/am/am.h | 1 | ||||
| -rw-r--r-- | src/core/hle/service/pctl/module.cpp | 57 |
3 files changed, 60 insertions, 7 deletions
diff --git a/src/core/hle/service/am/am.cpp b/src/core/hle/service/am/am.cpp index 1743bcb2b..41bd1497c 100644 --- a/src/core/hle/service/am/am.cpp +++ b/src/core/hle/service/am/am.cpp | |||
| @@ -635,7 +635,7 @@ ICommonStateGetter::ICommonStateGetter(Core::System& system_, | |||
| 635 | {50, &ICommonStateGetter::IsVrModeEnabled, "IsVrModeEnabled"}, | 635 | {50, &ICommonStateGetter::IsVrModeEnabled, "IsVrModeEnabled"}, |
| 636 | {51, &ICommonStateGetter::SetVrModeEnabled, "SetVrModeEnabled"}, | 636 | {51, &ICommonStateGetter::SetVrModeEnabled, "SetVrModeEnabled"}, |
| 637 | {52, &ICommonStateGetter::SetLcdBacklighOffEnabled, "SetLcdBacklighOffEnabled"}, | 637 | {52, &ICommonStateGetter::SetLcdBacklighOffEnabled, "SetLcdBacklighOffEnabled"}, |
| 638 | {53, nullptr, "BeginVrModeEx"}, | 638 | {53, &ICommonStateGetter::BeginVrModeEx, "BeginVrModeEx"}, |
| 639 | {54, &ICommonStateGetter::EndVrModeEx, "EndVrModeEx"}, | 639 | {54, &ICommonStateGetter::EndVrModeEx, "EndVrModeEx"}, |
| 640 | {55, nullptr, "IsInControllerFirmwareUpdateSection"}, | 640 | {55, nullptr, "IsInControllerFirmwareUpdateSection"}, |
| 641 | {60, &ICommonStateGetter::GetDefaultDisplayResolution, "GetDefaultDisplayResolution"}, | 641 | {60, &ICommonStateGetter::GetDefaultDisplayResolution, "GetDefaultDisplayResolution"}, |
| @@ -732,6 +732,13 @@ void ICommonStateGetter::SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx | |||
| 732 | rb.Push(RESULT_SUCCESS); | 732 | rb.Push(RESULT_SUCCESS); |
| 733 | } | 733 | } |
| 734 | 734 | ||
| 735 | void ICommonStateGetter::BeginVrModeEx(Kernel::HLERequestContext& ctx) { | ||
| 736 | LOG_WARNING(Service_AM, "(STUBBED) called"); | ||
| 737 | |||
| 738 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 739 | rb.Push(RESULT_SUCCESS); | ||
| 740 | } | ||
| 741 | |||
| 735 | void ICommonStateGetter::EndVrModeEx(Kernel::HLERequestContext& ctx) { | 742 | void ICommonStateGetter::EndVrModeEx(Kernel::HLERequestContext& ctx) { |
| 736 | LOG_WARNING(Service_AM, "(STUBBED) called"); | 743 | LOG_WARNING(Service_AM, "(STUBBED) called"); |
| 737 | 744 | ||
diff --git a/src/core/hle/service/am/am.h b/src/core/hle/service/am/am.h index f51aca1af..50737432c 100644 --- a/src/core/hle/service/am/am.h +++ b/src/core/hle/service/am/am.h | |||
| @@ -189,6 +189,7 @@ private: | |||
| 189 | void IsVrModeEnabled(Kernel::HLERequestContext& ctx); | 189 | void IsVrModeEnabled(Kernel::HLERequestContext& ctx); |
| 190 | void SetVrModeEnabled(Kernel::HLERequestContext& ctx); | 190 | void SetVrModeEnabled(Kernel::HLERequestContext& ctx); |
| 191 | void SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx); | 191 | void SetLcdBacklighOffEnabled(Kernel::HLERequestContext& ctx); |
| 192 | void BeginVrModeEx(Kernel::HLERequestContext& ctx); | ||
| 192 | void EndVrModeEx(Kernel::HLERequestContext& ctx); | 193 | void EndVrModeEx(Kernel::HLERequestContext& ctx); |
| 193 | void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx); | 194 | void GetDefaultDisplayResolution(Kernel::HLERequestContext& ctx); |
| 194 | void SetCpuBoostMode(Kernel::HLERequestContext& ctx); | 195 | void SetCpuBoostMode(Kernel::HLERequestContext& ctx); |
diff --git a/src/core/hle/service/pctl/module.cpp b/src/core/hle/service/pctl/module.cpp index 6ab1e4124..f9089bf2f 100644 --- a/src/core/hle/service/pctl/module.cpp +++ b/src/core/hle/service/pctl/module.cpp | |||
| @@ -50,11 +50,11 @@ public: | |||
| 50 | {1046, nullptr, "DisableFeaturesForReset"}, | 50 | {1046, nullptr, "DisableFeaturesForReset"}, |
| 51 | {1047, nullptr, "NotifyApplicationDownloadStarted"}, | 51 | {1047, nullptr, "NotifyApplicationDownloadStarted"}, |
| 52 | {1048, nullptr, "NotifyNetworkProfileCreated"}, | 52 | {1048, nullptr, "NotifyNetworkProfileCreated"}, |
| 53 | {1061, nullptr, "ConfirmStereoVisionRestrictionConfigurable"}, | 53 | {1061, &IParentalControlService::ConfirmStereoVisionRestrictionConfigurable, "ConfirmStereoVisionRestrictionConfigurable"}, |
| 54 | {1062, nullptr, "GetStereoVisionRestriction"}, | 54 | {1062, &IParentalControlService::GetStereoVisionRestriction, "GetStereoVisionRestriction"}, |
| 55 | {1063, nullptr, "SetStereoVisionRestriction"}, | 55 | {1063, &IParentalControlService::SetStereoVisionRestriction, "SetStereoVisionRestriction"}, |
| 56 | {1064, nullptr, "ResetConfirmedStereoVisionPermission"}, | 56 | {1064, &IParentalControlService::ResetConfirmedStereoVisionPermission, "ResetConfirmedStereoVisionPermission"}, |
| 57 | {1065, nullptr, "IsStereoVisionPermitted"}, | 57 | {1065, &IParentalControlService::IsStereoVisionPermitted, "IsStereoVisionPermitted"}, |
| 58 | {1201, nullptr, "UnlockRestrictionTemporarily"}, | 58 | {1201, nullptr, "UnlockRestrictionTemporarily"}, |
| 59 | {1202, nullptr, "UnlockSystemSettingsRestriction"}, | 59 | {1202, nullptr, "UnlockSystemSettingsRestriction"}, |
| 60 | {1203, nullptr, "SetPinCode"}, | 60 | {1203, nullptr, "SetPinCode"}, |
| @@ -114,6 +114,7 @@ public: | |||
| 114 | {2015, nullptr, "FinishSynchronizeParentalControlSettingsWithLastUpdated"}, | 114 | {2015, nullptr, "FinishSynchronizeParentalControlSettingsWithLastUpdated"}, |
| 115 | {2016, nullptr, "RequestUpdateExemptionListAsync"}, | 115 | {2016, nullptr, "RequestUpdateExemptionListAsync"}, |
| 116 | }; | 116 | }; |
| 117 | // clang-format on | ||
| 117 | RegisterHandlers(functions); | 118 | RegisterHandlers(functions); |
| 118 | } | 119 | } |
| 119 | 120 | ||
| @@ -131,6 +132,49 @@ private: | |||
| 131 | IPC::ResponseBuilder rb{ctx, 2}; | 132 | IPC::ResponseBuilder rb{ctx, 2}; |
| 132 | rb.Push(RESULT_SUCCESS); | 133 | rb.Push(RESULT_SUCCESS); |
| 133 | } | 134 | } |
| 135 | |||
| 136 | void ConfirmStereoVisionRestrictionConfigurable(Kernel::HLERequestContext& ctx) { | ||
| 137 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); | ||
| 138 | |||
| 139 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 140 | rb.Push(RESULT_SUCCESS); | ||
| 141 | } | ||
| 142 | |||
| 143 | void IsStereoVisionPermitted(Kernel::HLERequestContext& ctx) { | ||
| 144 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); | ||
| 145 | |||
| 146 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 147 | rb.Push(RESULT_SUCCESS); | ||
| 148 | rb.Push(true); | ||
| 149 | } | ||
| 150 | |||
| 151 | void SetStereoVisionRestriction(Kernel::HLERequestContext& ctx) { | ||
| 152 | IPC::RequestParser rp{ctx}; | ||
| 153 | const auto can_use = rp.Pop<bool>(); | ||
| 154 | LOG_WARNING(Service_PCTL, "(STUBBED) called, can_use={}", can_use); | ||
| 155 | |||
| 156 | can_use_stereo_vision = can_use; | ||
| 157 | |||
| 158 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 159 | rb.Push(RESULT_SUCCESS); | ||
| 160 | } | ||
| 161 | |||
| 162 | void GetStereoVisionRestriction(Kernel::HLERequestContext& ctx) { | ||
| 163 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); | ||
| 164 | |||
| 165 | IPC::ResponseBuilder rb{ctx, 3}; | ||
| 166 | rb.Push(RESULT_SUCCESS); | ||
| 167 | rb.Push(can_use_stereo_vision); | ||
| 168 | } | ||
| 169 | |||
| 170 | void ResetConfirmedStereoVisionPermission(Kernel::HLERequestContext& ctx) { | ||
| 171 | LOG_WARNING(Service_PCTL, "(STUBBED) called"); | ||
| 172 | |||
| 173 | IPC::ResponseBuilder rb{ctx, 2}; | ||
| 174 | rb.Push(RESULT_SUCCESS); | ||
| 175 | } | ||
| 176 | |||
| 177 | bool can_use_stereo_vision = true; | ||
| 134 | }; | 178 | }; |
| 135 | 179 | ||
| 136 | void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) { | 180 | void Module::Interface::CreateService(Kernel::HLERequestContext& ctx) { |
| @@ -149,7 +193,8 @@ void Module::Interface::CreateServiceWithoutInitialize(Kernel::HLERequestContext | |||
| 149 | rb.PushIpcInterface<IParentalControlService>(system); | 193 | rb.PushIpcInterface<IParentalControlService>(system); |
| 150 | } | 194 | } |
| 151 | 195 | ||
| 152 | Module::Interface::Interface(Core::System& system_, std::shared_ptr<Module> module_, const char* name) | 196 | Module::Interface::Interface(Core::System& system_, std::shared_ptr<Module> module_, |
| 197 | const char* name) | ||
| 153 | : ServiceFramework{system_, name}, module{std::move(module_)} {} | 198 | : ServiceFramework{system_, name}, module{std::move(module_)} {} |
| 154 | 199 | ||
| 155 | Module::Interface::~Interface() = default; | 200 | Module::Interface::~Interface() = default; |