mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-06-02 20:27:17 -04:00
37 lines
1 KiB
C++
Executable file
37 lines
1 KiB
C++
Executable file
// SPDX-FileCopyrightText: Copyright 2021 yuzu Emulator Project
|
|
// SPDX-License-Identifier: GPL-2.0-or-later
|
|
|
|
#pragma once
|
|
|
|
#include "common/uuid.h"
|
|
#include "core/hle/service/cmif_types.h"
|
|
#include "core/hle/service/ns/ns_types.h"
|
|
#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 IQueryService final : public ServiceFramework<IQueryService> {
|
|
public:
|
|
explicit IQueryService(Core::System& system_);
|
|
~IQueryService() override;
|
|
|
|
private:
|
|
Result QueryPlayStatisticsByApplicationIdAndUserAccountId(
|
|
Out<PlayStatistics> out_play_statistics, bool unknown, u64 application_id, Uid account_id);
|
|
};
|
|
|
|
} // namespace Service::NS
|