diff options
Diffstat (limited to 'src/core/hle/service/pcie')
| -rw-r--r-- | src/core/hle/service/pcie/pcie.cpp | 8 | ||||
| -rw-r--r-- | src/core/hle/service/pcie/pcie.h | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/core/hle/service/pcie/pcie.cpp b/src/core/hle/service/pcie/pcie.cpp index c568a0adc..80c0fc7ac 100644 --- a/src/core/hle/service/pcie/pcie.cpp +++ b/src/core/hle/service/pcie/pcie.cpp | |||
| @@ -12,7 +12,7 @@ namespace Service::PCIe { | |||
| 12 | 12 | ||
| 13 | class ISession final : public ServiceFramework<ISession> { | 13 | class ISession final : public ServiceFramework<ISession> { |
| 14 | public: | 14 | public: |
| 15 | explicit ISession() : ServiceFramework{"ISession"} { | 15 | explicit ISession(Core::System& system_) : ServiceFramework{system_, "ISession"} { |
| 16 | // clang-format off | 16 | // clang-format off |
| 17 | static const FunctionInfo functions[] = { | 17 | static const FunctionInfo functions[] = { |
| 18 | {0, nullptr, "QueryFunctions"}, | 18 | {0, nullptr, "QueryFunctions"}, |
| @@ -48,7 +48,7 @@ public: | |||
| 48 | 48 | ||
| 49 | class PCIe final : public ServiceFramework<PCIe> { | 49 | class PCIe final : public ServiceFramework<PCIe> { |
| 50 | public: | 50 | public: |
| 51 | explicit PCIe() : ServiceFramework{"pcie"} { | 51 | explicit PCIe(Core::System& system_) : ServiceFramework{system, "pcie"} { |
| 52 | // clang-format off | 52 | // clang-format off |
| 53 | static const FunctionInfo functions[] = { | 53 | static const FunctionInfo functions[] = { |
| 54 | {0, nullptr, "RegisterClassDriver"}, | 54 | {0, nullptr, "RegisterClassDriver"}, |
| @@ -60,8 +60,8 @@ public: | |||
| 60 | } | 60 | } |
| 61 | }; | 61 | }; |
| 62 | 62 | ||
| 63 | void InstallInterfaces(SM::ServiceManager& sm) { | 63 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { |
| 64 | std::make_shared<PCIe>()->InstallAsService(sm); | 64 | std::make_shared<PCIe>(system)->InstallAsService(sm); |
| 65 | } | 65 | } |
| 66 | 66 | ||
| 67 | } // namespace Service::PCIe | 67 | } // namespace Service::PCIe |
diff --git a/src/core/hle/service/pcie/pcie.h b/src/core/hle/service/pcie/pcie.h index 59c22ca45..e5709a72f 100644 --- a/src/core/hle/service/pcie/pcie.h +++ b/src/core/hle/service/pcie/pcie.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::PCIe { | 15 | namespace Service::PCIe { |
| 12 | 16 | ||
| 13 | void InstallInterfaces(SM::ServiceManager& sm); | 17 | void InstallInterfaces(SM::ServiceManager& sm, Core::System& system); |
| 14 | 18 | ||
| 15 | } // namespace Service::PCIe | 19 | } // namespace Service::PCIe |