aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/service/vi/vi_m.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2018-01-22 17:52:47 -0500
committerGitHub <noreply@github.com>2018-01-22 17:52:47 -0500
commitd8bd70d396597d652e8eb891175192ffaf728593 (patch)
tree01062c3da533e1b1469fed9781c38aecb91ce3ba /src/core/hle/service/vi/vi_m.cpp
parentde2e5a0855c11f8ef284708d2b55fa156594d1c4 (diff)
parent10c67bf39504aae36b06d4abe8055aaf6feeb2ad (diff)
Merge pull request #133 from Subv/nvflinger2
AppletOE: Stubbed CreateManagedDisplayLayer to create a new layer in the default display.
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