diff options
| author | bunnei <bunneidev@gmail.com> | 2019-03-13 10:01:54 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-03-13 10:01:54 -0400 |
| commit | e8a21f52769ceef8aefdd06c54ca7026ab1a3d9a (patch) | |
| tree | 67ae631eb4c09c0b7ebc2496b2a55adadcd33f22 /src/core/hle/service/vi/vi_u.cpp | |
| parent | 71c4e876efd20e0bae875a80effe2bc5561453e7 (diff) | |
| parent | 92ea1c32d608cd258c3fc077f5aaf953536d7f45 (diff) | |
Merge pull request #2166 from lioncash/vi-init-service
service/vi: Unstub GetDisplayService
Diffstat (limited to 'src/core/hle/service/vi/vi_u.cpp')
| -rw-r--r-- | src/core/hle/service/vi/vi_u.cpp | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/core/hle/service/vi/vi_u.cpp b/src/core/hle/service/vi/vi_u.cpp index d81e410d6..9d5ceb608 100644 --- a/src/core/hle/service/vi/vi_u.cpp +++ b/src/core/hle/service/vi/vi_u.cpp @@ -2,12 +2,14 @@ // Licensed under GPLv2 or any later version // Refer to the license.txt file included. +#include "common/logging/log.h" +#include "core/hle/service/vi/vi.h" #include "core/hle/service/vi/vi_u.h" namespace Service::VI { -VI_U::VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> nv_flinger) - : Module::Interface(std::move(module), "vi:u", std::move(nv_flinger)) { +VI_U::VI_U(std::shared_ptr<NVFlinger::NVFlinger> nv_flinger) + : ServiceFramework{"vi:u"}, nv_flinger{std::move(nv_flinger)} { static const FunctionInfo functions[] = { {0, &VI_U::GetDisplayService, "GetDisplayService"}, }; @@ -16,4 +18,10 @@ VI_U::VI_U(std::shared_ptr<Module> module, std::shared_ptr<NVFlinger::NVFlinger> VI_U::~VI_U() = default; +void VI_U::GetDisplayService(Kernel::HLERequestContext& ctx) { + LOG_DEBUG(Service_VI, "called"); + + detail::GetDisplayServiceImpl(ctx, nv_flinger, Permission::User); +} + } // namespace Service::VI |
