2019-11-15 01:25:22 +01:00
|
|
|
|
using Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService;
|
|
|
|
|
|
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm
|
2019-09-19 02:45:11 +02:00
|
|
|
|
{
|
|
|
|
|
[Service("pdm:qry")]
|
|
|
|
|
class IQueryService : IpcService
|
|
|
|
|
{
|
|
|
|
|
public IQueryService(ServiceCtx context) { }
|
2019-11-15 01:25:22 +01:00
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(13)] // 5.0.0+
|
2019-11-15 01:25:22 +01:00
|
|
|
|
// QueryApplicationPlayStatisticsForSystem(buffer<bytes, 5> title_id_list) -> (buffer<bytes, 6> entries, s32 entries_count)
|
|
|
|
|
public ResultCode QueryApplicationPlayStatisticsForSystem(ServiceCtx context)
|
|
|
|
|
{
|
|
|
|
|
return QueryPlayStatisticsManager.GetPlayStatistics(context);
|
|
|
|
|
}
|
|
|
|
|
|
2023-04-15 01:00:34 +02:00
|
|
|
|
[CommandCmif(16)] // 6.0.0+
|
2019-11-15 01:25:22 +01:00
|
|
|
|
// 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);
|
|
|
|
|
}
|
2019-09-19 02:45:11 +02:00
|
|
|
|
}
|
|
|
|
|
}
|