Stub QTM_S:GetHeadtrackingInfo (#7166)

* Stub QTM_S:GetHeadtrackingInfo

* Suggestions
This commit is contained in:
PabloMK7 2023-11-15 01:04:14 +01:00 committed by GitHub
parent e28c2a390c
commit e9936e01c2
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 1 deletions

View file

@ -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
}; };

View file

@ -15,6 +15,8 @@ public:
private: private:
SERVICE_SERIALIZATION_SIMPLE SERVICE_SERIALIZATION_SIMPLE
void GetHeadtrackingInfo(Kernel::HLERequestContext& ctx);
}; };
} // namespace Service::QTM } // namespace Service::QTM