2018-01-13 22:22:39 +01:00
|
|
|
// Copyright 2018 yuzu emulator team
|
2018-01-08 03:27:58 +01:00
|
|
|
// Licensed under GPLv2 or any later version
|
|
|
|
// Refer to the license.txt file included.
|
|
|
|
|
|
|
|
#include "common/logging/log.h"
|
|
|
|
#include "core/hle/ipc_helpers.h"
|
|
|
|
#include "core/hle/service/vi/vi.h"
|
|
|
|
#include "core/hle/service/vi/vi_m.h"
|
|
|
|
|
|
|
|
namespace Service {
|
|
|
|
namespace VI {
|
|
|
|
|
|
|
|
void VI_M::GetDisplayService(Kernel::HLERequestContext& ctx) {
|
|
|
|
LOG_WARNING(Service, "(STUBBED) called");
|
|
|
|
|
|
|
|
IPC::RequestBuilder rb{ctx, 2, 0, 0, 1};
|
2018-01-09 00:18:50 +01:00
|
|
|
rb.PushIpcInterface<IApplicationDisplayService>(nv_flinger);
|
2018-01-08 03:27:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
VI_M::VI_M() : ServiceFramework("vi:m") {
|
|
|
|
static const FunctionInfo functions[] = {
|
|
|
|
{2, &VI_M::GetDisplayService, "GetDisplayService"},
|
|
|
|
{3, nullptr, "GetDisplayServiceWithProxyNameExchange"},
|
|
|
|
};
|
|
|
|
RegisterHandlers(functions);
|
2018-01-09 00:18:50 +01:00
|
|
|
nv_flinger = std::make_shared<NVFlinger>();
|
2018-01-08 03:27:58 +01:00
|
|
|
}
|
|
|
|
|
|
|
|
} // namespace VI
|
|
|
|
} // namespace Service
|