diff options
Diffstat (limited to 'src/core/hle/service/ptm')
| -rw-r--r-- | src/core/hle/service/ptm/psm.cpp | 6 | ||||
| -rw-r--r-- | src/core/hle/service/ptm/psm.h | 6 |
2 files changed, 8 insertions, 4 deletions
diff --git a/src/core/hle/service/ptm/psm.cpp b/src/core/hle/service/ptm/psm.cpp index 6d9e6bd09..b4b0dd241 100644 --- a/src/core/hle/service/ptm/psm.cpp +++ b/src/core/hle/service/ptm/psm.cpp | |||
| @@ -14,7 +14,7 @@ namespace Service::PSM { | |||
| 14 | 14 | ||
| 15 | class PSM final : public ServiceFramework<PSM> { | 15 | class PSM final : public ServiceFramework<PSM> { |
| 16 | public: | 16 | public: |
| 17 | explicit PSM() : ServiceFramework{"psm"} { | 17 | explicit PSM(Core::System& system_) : ServiceFramework{system_, "psm"} { |
| 18 | // clang-format off | 18 | // clang-format off |
| 19 | static const FunctionInfo functions[] = { | 19 | static const FunctionInfo functions[] = { |
| 20 | {0, &PSM::GetBatteryChargePercentage, "GetBatteryChargePercentage"}, | 20 | {0, &PSM::GetBatteryChargePercentage, "GetBatteryChargePercentage"}, |
| @@ -72,8 +72,8 @@ private: | |||
| 72 | ChargerType charger_type{ChargerType::RegularCharger}; | 72 | ChargerType charger_type{ChargerType::RegularCharger}; |
| 73 | }; | 73 | }; |
| 74 | 74 | ||
| 75 | void InstallInterfaces(SM::ServiceManager& sm) { | 75 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { |
| 76 | std::make_shared<PSM>()->InstallAsService(sm); | 76 | std::make_shared<PSM>(system)->InstallAsService(sm); |
| 77 | } | 77 | } |
| 78 | 78 | ||
| 79 | } // namespace Service::PSM | 79 | } // namespace Service::PSM |
diff --git a/src/core/hle/service/ptm/psm.h b/src/core/hle/service/ptm/psm.h index a286793ae..2930ce26a 100644 --- a/src/core/hle/service/ptm/psm.h +++ b/src/core/hle/service/ptm/psm.h | |||
| @@ -4,12 +4,16 @@ | |||
| 4 | 4 | ||
| 5 | #pragma once | 5 | #pragma once |
| 6 | 6 | ||
| 7 | namespace Core { | ||
| 8 | class System; | ||
| 9 | } | ||
| 10 | |||
| 7 | namespace Service::SM { | 11 | namespace Service::SM { |
| 8 | class ServiceManager; | 12 | class ServiceManager; |
| 9 | } | 13 | } |
| 10 | 14 | ||
| 11 | namespace Service::PSM { | 15 | namespace Service::PSM { |
| 12 | 16 | ||
| 13 | void InstallInterfaces(SM::ServiceManager& sm); | 17 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system); |
| 14 | 18 | ||
| 15 | } // namespace Service::PSM | 19 | } // namespace Service::PSM |