aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/vi/vi_m.cpp
diff options
context:
space:
mode:
authorSubv <subv2112@gmail.com>2018-01-22 13:40:02 -0500
committerSubv <subv2112@gmail.com>2018-01-22 13:40:02 -0500
commit42859461f3d6db8ea64facdf388d4791f713c7b1 (patch)
tree379f83f27aa9718926733bf3e8c9e10cfd50b409 /src/core/hle/service/vi/vi_m.cpp
parent7f19a7d305c00bf680787c60a550c6ff10e955e0 (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_m.cpp')
-rw-r--r--src/core/hle/service/vi/vi_m.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/service/vi/vi_m.cpp b/src/core/hle/service/vi/vi_m.cpp
index 6deedf842..20b24658e 100644
--- a/src/core/hle/service/vi/vi_m.cpp
+++ b/src/core/hle/service/vi/vi_m.cpp
@@ -17,13 +17,13 @@ void VI_M::GetDisplayService(Kernel::HLERequestContext& ctx) {
rb.PushIpcInterface<IApplicationDisplayService>(nv_flinger);
}
-VI_M::VI_M() : ServiceFramework("vi:m") {
+VI_M::VI_M(std::shared_ptr<NVFlinger::NVFlinger> nv_flinger)
+ : ServiceFramework("vi:m"), nv_flinger(std::move(nv_flinger)) {
static const FunctionInfo functions[] = {
{2, &VI_M::GetDisplayService, "GetDisplayService"},
{3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
};
RegisterHandlers(functions);
- nv_flinger = std::make_shared<NVFlinger::NVFlinger>();
}
} // namespace VI