aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Sdb/Pdm/IQueryService.cs
blob: 6508794ab73787b9c59cec79916b14542c20bcd9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
using Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService;

namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm
{
    [Service("pdm:qry")]
    class IQueryService : IpcService
    {
        public IQueryService(ServiceCtx context) { }

        [CommandCmif(13)] // 5.0.0+
        // QueryApplicationPlayStatisticsForSystem(buffer<bytes, 5> title_id_list) -> (buffer<bytes, 6> entries, s32 entries_count)
        public ResultCode QueryApplicationPlayStatisticsForSystem(ServiceCtx context)
        {
            return QueryPlayStatisticsManager.GetPlayStatistics(context);
        }

        [CommandCmif(16)] // 6.0.0+
        // QueryApplicationPlayStatisticsByUserAccountIdForSystem(nn::account::Uid, buffer<bytes, 5> title_id_list) -> (buffer<bytes, 6> entries, s32 entries_count)
        public ResultCode QueryApplicationPlayStatisticsByUserAccountIdForSystem(ServiceCtx context)
        {
            return QueryPlayStatisticsManager.GetPlayStatistics(context, true);
        }
    }
}