Fix reviews
This commit is contained in:
parent
da8943d3fe
commit
775a7529b0
2 changed files with 6 additions and 6 deletions
|
@ -41,7 +41,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService
|
||||||
|
|
||||||
if (queryCapability == PlayLogQueryCapability.WhiteList)
|
if (queryCapability == PlayLogQueryCapability.WhiteList)
|
||||||
{
|
{
|
||||||
// Check if input titleids are in the whitelist
|
// Check if input title ids are in the whitelist.
|
||||||
foreach (ulong titleId in titleIds)
|
foreach (ulong titleId in titleIds)
|
||||||
{
|
{
|
||||||
if (!context.Device.System.ControlData.PlayLogQueryableApplicationId.Contains(titleId))
|
if (!context.Device.System.ControlData.PlayLogQueryableApplicationId.Contains(titleId))
|
||||||
|
@ -53,16 +53,16 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService
|
||||||
|
|
||||||
MemoryHelper.FillWithZeros(context.Memory, outputPosition, (int)outputSize);
|
MemoryHelper.FillWithZeros(context.Memory, outputPosition, (int)outputSize);
|
||||||
|
|
||||||
// return ResultCode.ServiceUnavailable if data is locked by another process.
|
// Return ResultCode.ServiceUnavailable if data is locked by another process.
|
||||||
IEnumerable<KeyValuePair<UInt128, ApplicationPlayStatistics>> filteredApplicationPlayStatistics;
|
var filteredApplicationPlayStatistics = applicationPlayStatistics.AsEnumerable();
|
||||||
|
|
||||||
if (queryCapability == PlayLogQueryCapability.None)
|
if (queryCapability == PlayLogQueryCapability.None)
|
||||||
{
|
{
|
||||||
filteredApplicationPlayStatistics = applicationPlayStatistics.Where(kv => kv.Value.TitleId == context.Process.TitleId);
|
filteredApplicationPlayStatistics = filteredApplicationPlayStatistics.Where(kv => kv.Value.TitleId == context.Process.TitleId);
|
||||||
}
|
}
|
||||||
else // PlayLogQueryCapability.All
|
else // PlayLogQueryCapability.All
|
||||||
{
|
{
|
||||||
filteredApplicationPlayStatistics = applicationPlayStatistics.Where(kv => titleIds.Contains(kv.Value.TitleId));
|
filteredApplicationPlayStatistics = filteredApplicationPlayStatistics.Where(kv => titleIds.Contains(kv.Value.TitleId));
|
||||||
}
|
}
|
||||||
|
|
||||||
if (byUserId)
|
if (byUserId)
|
||||||
|
|
|
@ -6,7 +6,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService.Types
|
||||||
struct ApplicationPlayStatistics
|
struct ApplicationPlayStatistics
|
||||||
{
|
{
|
||||||
public ulong TitleId;
|
public ulong TitleId;
|
||||||
public long TotalPlayTime; // in nanoseconds
|
public long TotalPlayTime; // In nanoseconds.
|
||||||
public long TotalLaunchCount;
|
public long TotalLaunchCount;
|
||||||
}
|
}
|
||||||
}
|
}
|
Loading…
Add table
Add a link
Reference in a new issue