diff --git a/src/core/hle/service/qtm/qtm_s.cpp b/src/core/hle/service/qtm/qtm_s.cpp index 1a7f126160..b789c8b7d4 100644 --- a/src/core/hle/service/qtm/qtm_s.cpp +++ b/src/core/hle/service/qtm/qtm_s.cpp @@ -10,12 +10,24 @@ 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(); + + std::array data{}; + IPC::RequestBuilder rb = rp.MakeBuilder(17, 0); + rb.Push(RESULT_SUCCESS); + rb.PushRaw>(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, nullptr, "GetHeadtrackingInfo"}, + {0x0002, &QTM_S::GetHeadtrackingInfo, "GetHeadtrackingInfo"}, // clang-format on }; diff --git a/src/core/hle/service/qtm/qtm_s.h b/src/core/hle/service/qtm/qtm_s.h index b32a497dbd..4ef85e2604 100644 --- a/src/core/hle/service/qtm/qtm_s.h +++ b/src/core/hle/service/qtm/qtm_s.h @@ -15,6 +15,8 @@ public: private: SERVICE_SERIALIZATION_SIMPLE + + void GetHeadtrackingInfo(Kernel::HLERequestContext& ctx); }; } // namespace Service::QTM