diff options
author | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-26 03:36:44 +0100 |
---|---|---|
committer | Narr the Reg <juangerman-13@hotmail.com> | 2021-11-28 03:30:16 +0100 |
commit | 50d8e753c525f8f00a67678c56351eccf72aa1f4 (patch) | |
tree | 886dbf7164afab883cc989a4e116953bd1e0ea39 /src/core/hle/service/ns/pdm_qry.h | |
parent | core/hid: Stub GetUniquePadsFromNpad (diff) | |
download | yuzu-50d8e753c525f8f00a67678c56351eccf72aa1f4.tar yuzu-50d8e753c525f8f00a67678c56351eccf72aa1f4.tar.gz yuzu-50d8e753c525f8f00a67678c56351eccf72aa1f4.tar.bz2 yuzu-50d8e753c525f8f00a67678c56351eccf72aa1f4.tar.lz yuzu-50d8e753c525f8f00a67678c56351eccf72aa1f4.tar.xz yuzu-50d8e753c525f8f00a67678c56351eccf72aa1f4.tar.zst yuzu-50d8e753c525f8f00a67678c56351eccf72aa1f4.zip |
Diffstat (limited to '')
-rw-r--r-- | src/core/hle/service/ns/pdm_qry.h | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/src/core/hle/service/ns/pdm_qry.h b/src/core/hle/service/ns/pdm_qry.h new file mode 100644 index 000000000..516136314 --- /dev/null +++ b/src/core/hle/service/ns/pdm_qry.h @@ -0,0 +1,33 @@ +// Copyright 2021 yuzu Emulator Project +// Licensed under GPLv2 or any later version +// Refer to the license.txt file included + +#pragma once + +#include "core/hle/service/service.h" + +namespace Service::NS { + +struct PlayStatistics { + u64 application_id{}; + u32 first_entry_index{}; + u32 first_timestamp_user{}; + u32 first_timestamp_network{}; + u32 last_entry_index{}; + u32 last_timestamp_user{}; + u32 last_timestamp_network{}; + u32 play_time_in_minutes{}; + u32 total_launches{}; +}; +static_assert(sizeof(PlayStatistics) == 0x28, "PlayStatistics is an invalid size"); + +class PDM_QRY final : public ServiceFramework<PDM_QRY> { +public: + explicit PDM_QRY(Core::System& system_); + ~PDM_QRY() override; + +private: + void QueryPlayStatisticsByApplicationIdAndUserAccountId(Kernel::HLERequestContext& ctx); +}; + +} // namespace Service::NS |