diff options
author | David Marcec <dmarcecguzman@gmail.com> | 2019-09-21 10:42:38 +0200 |
---|---|---|
committer | David Marcec <dmarcecguzman@gmail.com> | 2019-09-22 08:30:20 +0200 |
commit | f2b61ff073f1ed766c837a2bc454812218f6746d (patch) | |
tree | a67d518817b7f9aa80048ccdd010210fa06bb23b /src/core | |
parent | Deglobalize System: Aoc (diff) | |
download | yuzu-f2b61ff073f1ed766c837a2bc454812218f6746d.tar yuzu-f2b61ff073f1ed766c837a2bc454812218f6746d.tar.gz yuzu-f2b61ff073f1ed766c837a2bc454812218f6746d.tar.bz2 yuzu-f2b61ff073f1ed766c837a2bc454812218f6746d.tar.lz yuzu-f2b61ff073f1ed766c837a2bc454812218f6746d.tar.xz yuzu-f2b61ff073f1ed766c837a2bc454812218f6746d.tar.zst yuzu-f2b61ff073f1ed766c837a2bc454812218f6746d.zip |
Diffstat (limited to 'src/core')
-rw-r--r-- | src/core/hle/service/btdrv/btdrv.cpp | 8 | ||||
-rw-r--r-- | src/core/hle/service/btdrv/btdrv.h | 6 |
2 files changed, 9 insertions, 5 deletions
diff --git a/src/core/hle/service/btdrv/btdrv.cpp b/src/core/hle/service/btdrv/btdrv.cpp index 3c7ca2c44..afce581e5 100644 --- a/src/core/hle/service/btdrv/btdrv.cpp +++ b/src/core/hle/service/btdrv/btdrv.cpp @@ -16,7 +16,7 @@ namespace Service::BtDrv { class Bt final : public ServiceFramework<Bt> { public: - explicit Bt() : ServiceFramework{"bt"} { + explicit Bt(Core::System& system) : ServiceFramework{"bt"} { // clang-format off static const FunctionInfo functions[] = { {0, nullptr, "LeClientReadCharacteristic"}, @@ -33,7 +33,7 @@ public: // clang-format on RegisterHandlers(functions); - auto& kernel = Core::System::GetInstance().Kernel(); + auto& kernel = system.Kernel(); register_event = Kernel::WritableEvent::CreateEventPair( kernel, Kernel::ResetType::Automatic, "BT:RegisterEvent"); } @@ -163,9 +163,9 @@ public: } }; -void InstallInterfaces(SM::ServiceManager& sm) { +void InstallInterfaces(SM::ServiceManager& sm, Core::System& system) { std::make_shared<BtDrv>()->InstallAsService(sm); - std::make_shared<Bt>()->InstallAsService(sm); + std::make_shared<Bt>(system)->InstallAsService(sm); } } // namespace Service::BtDrv diff --git a/src/core/hle/service/btdrv/btdrv.h b/src/core/hle/service/btdrv/btdrv.h index 164e56f43..191410dbc 100644 --- a/src/core/hle/service/btdrv/btdrv.h +++ b/src/core/hle/service/btdrv/btdrv.h @@ -8,9 +8,13 @@ namespace Service::SM { class ServiceManager; } +namespace Core { +class System; +} + namespace Service::BtDrv { /// Registers all BtDrv services with the specified service manager. -void InstallInterfaces(SM::ServiceManager& sm); +void InstallInterfaces(SM::ServiceManager& sm, Core::System& system); } // namespace Service::BtDrv |