vi_s.cpp 844 B

12345678910111213141516171819202122232425262728
  1. // Copyright 2018 yuzu emulator team
  2. // Licensed under GPLv2 or any later version
  3. // Refer to the license.txt file included.
  4. #include "common/logging/log.h"
  5. #include "core/hle/service/vi/vi.h"
  6. #include "core/hle/service/vi/vi_s.h"
  7. namespace Service::VI {
  8. VI_S::VI_S(Core::System& system_, NVFlinger::NVFlinger& nv_flinger_)
  9. : ServiceFramework{system_, "vi:s"}, nv_flinger{nv_flinger_} {
  10. static const FunctionInfo functions[] = {
  11. {1, &VI_S::GetDisplayService, "GetDisplayService"},
  12. {3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
  13. };
  14. RegisterHandlers(functions);
  15. }
  16. VI_S::~VI_S() = default;
  17. void VI_S::GetDisplayService(Kernel::HLERequestContext& ctx) {
  18. LOG_DEBUG(Service_VI, "called");
  19. detail::GetDisplayServiceImpl(ctx, system, nv_flinger, Permission::System);
  20. }
  21. } // namespace Service::VI