forked from suyu/suyu
99ceb03a1c
This formats all copyright comments according to SPDX formatting guidelines. Additionally, this resolves the remaining GPLv2 only licensed files by relicensing them to GPLv2.0-or-later.
32 lines
842 B
C++
32 lines
842 B
C++
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#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
|