diff options
| author | Subv <subv2112@gmail.com> | 2018-01-22 13:40:02 -0500 |
|---|---|---|
| committer | Subv <subv2112@gmail.com> | 2018-01-22 13:40:02 -0500 |
| commit | 42859461f3d6db8ea64facdf388d4791f713c7b1 (patch) | |
| tree | 379f83f27aa9718926733bf3e8c9e10cfd50b409 /src/core/hle/service/vi/vi.cpp | |
| parent | 7f19a7d305c00bf680787c60a550c6ff10e955e0 (diff) | |
Services: Vi shouldn't be responsible for creating nvflinger.
It is now created during Service initialization and passed to all the services that need it.
Diffstat (limited to 'src/core/hle/service/vi/vi.cpp')
| -rw-r--r-- | src/core/hle/service/vi/vi.cpp | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/core/hle/service/vi/vi.cpp b/src/core/hle/service/vi/vi.cpp index e0bfad290..6576f81db 100644 --- a/src/core/hle/service/vi/vi.cpp +++ b/src/core/hle/service/vi/vi.cpp @@ -753,8 +753,9 @@ IApplicationDisplayService::IApplicationDisplayService( RegisterHandlers(functions); } -void InstallInterfaces(SM::ServiceManager& service_manager) { - std::make_shared<VI_M>()->InstallAsService(service_manager); +void InstallInterfaces(SM::ServiceManager& service_manager, + std::shared_ptr<NVFlinger::NVFlinger> nv_flinger) { + std::make_shared<VI_M>(nv_flinger)->InstallAsService(service_manager); } } // namespace VI |
