Stub QTM_S:GetHeadtrackingInfo (#7166)
* Stub QTM_S:GetHeadtrackingInfo * Suggestions
This commit is contained in:
parent
e28c2a390c
commit
e9936e01c2
|
@ -10,12 +10,24 @@ SERIALIZE_EXPORT_IMPL(Service::QTM::QTM_S)
|
||||||
|
|
||||||
namespace Service::QTM {
|
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(RESULT_SUCCESS);
|
||||||
|
rb.PushRaw<std::array<u8, 0x40>>(data);
|
||||||
|
|
||||||
|
LOG_DEBUG(Service, "(STUBBED) called");
|
||||||
|
}
|
||||||
|
|
||||||
QTM_S::QTM_S() : ServiceFramework("qtm:s", 2) {
|
QTM_S::QTM_S() : ServiceFramework("qtm:s", 2) {
|
||||||
static const FunctionInfo functions[] = {
|
static const FunctionInfo functions[] = {
|
||||||
// qtm common commands
|
// qtm common commands
|
||||||
// clang-format off
|
// clang-format off
|
||||||
{0x0001, nullptr, "GetHeadtrackingInfoRaw"},
|
{0x0001, nullptr, "GetHeadtrackingInfoRaw"},
|
||||||
{0x0002, nullptr, "GetHeadtrackingInfo"},
|
{0x0002, &QTM_S::GetHeadtrackingInfo, "GetHeadtrackingInfo"},
|
||||||
// clang-format on
|
// clang-format on
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -15,6 +15,8 @@ public:
|
||||||
|
|
||||||
private:
|
private:
|
||||||
SERVICE_SERIALIZATION_SIMPLE
|
SERVICE_SERIALIZATION_SIMPLE
|
||||||
|
|
||||||
|
void GetHeadtrackingInfo(Kernel::HLERequestContext& ctx);
|
||||||
};
|
};
|
||||||
|
|
||||||
} // namespace Service::QTM
|
} // namespace Service::QTM
|
||||||
|
|
Loading…
Reference in New Issue