blob: 357cbb366e2d42e6161c80e4312ab0425b13605a (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2016 Citra Emulator Project
// Licensed under GPLv2 or any later version
// Refer to the license.txt file included.
#include "common/archives.h"
#include "core/hle/ipc_helpers.h"
#include "core/hle/service/qtm/qtm_s.h"
SERIALIZE_EXPORT_IMPL(Service::QTM::QTM_S)
namespace Service::QTM {
void QTM_S::GetHeadtrackingInfo(Kernel::HLERequestContext& ctx) {
IPC::RequestParser rp(ctx);
[[maybe_unused]] const u64 unknown = rp.Pop<u64>();
std::array<u8, 0x40> data{};
IPC::RequestBuilder rb = rp.MakeBuilder(17, 0);
rb.Push(ResultSuccess);
rb.PushRaw<std::array<u8, 0x40>>(data);
LOG_DEBUG(Service, "(STUBBED) called");
}
QTM_S::QTM_S() : ServiceFramework("qtm:s", 2) {
static const FunctionInfo functions[] = {
// qtm common commands
// clang-format off
{0x0001, nullptr, "GetHeadtrackingInfoRaw"},
{0x0002, &QTM_S::GetHeadtrackingInfo, "GetHeadtrackingInfo"},
// clang-format on
};
RegisterHandlers(functions);
}
} // namespace Service::QTM
|