summaryrefslogtreecommitdiffstats
path: root/src/core/hle/service/service.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-22 19:40:02 +0100
committerSubv <subv2112@gmail.com>2018-01-22 19:40:02 +0100
commit42859461f3d6db8ea64facdf388d4791f713c7b1 (patch)
tree379f83f27aa9718926733bf3e8c9e10cfd50b409 /src/core/hle/service/service.cpp
parentMerge pull request #132 from Subv/nvflinger (diff)
downloadyuzu-42859461f3d6db8ea64facdf388d4791f713c7b1.tar
yuzu-42859461f3d6db8ea64facdf388d4791f713c7b1.tar.gz
yuzu-42859461f3d6db8ea64facdf388d4791f713c7b1.tar.bz2
yuzu-42859461f3d6db8ea64facdf388d4791f713c7b1.tar.lz
yuzu-42859461f3d6db8ea64facdf388d4791f713c7b1.tar.xz
yuzu-42859461f3d6db8ea64facdf388d4791f713c7b1.tar.zst
yuzu-42859461f3d6db8ea64facdf388d4791f713c7b1.zip
Diffstat (limited to 'src/core/hle/service/service.cpp')
-rw-r--r--src/core/hle/service/service.cpp6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/core/hle/service/service.cpp b/src/core/hle/service/service.cpp
index 3f5ce56c6..403cce8e5 100644
--- a/src/core/hle/service/service.cpp
+++ b/src/core/hle/service/service.cpp
@@ -165,6 +165,10 @@ void AddNamedPort(std::string name, SharedPtr<ClientPort> port) {
/// Initialize ServiceManager
void Init() {
+ // NVFlinger needs to be accessed by several services like Vi and AppletOE so we instantiate it
+ // here and pass it into the respective InstallInterfaces functions.
+ auto nv_flinger = std::make_shared<NVFlinger::NVFlinger>();
+
SM::g_service_manager = std::make_shared<SM::ServiceManager>();
SM::ServiceManager::InstallInterfaces(SM::g_service_manager);
@@ -180,7 +184,7 @@ void Init() {
PCTL::InstallInterfaces(*SM::g_service_manager);
Sockets::InstallInterfaces(*SM::g_service_manager);
Time::InstallInterfaces(*SM::g_service_manager);
- VI::InstallInterfaces(*SM::g_service_manager);
+ VI::InstallInterfaces(*SM::g_service_manager, nv_flinger);
Set::InstallInterfaces(*SM::g_service_manager);
LOG_DEBUG(Service, "initialized OK");