aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.HLE/HOS/Services/Sdb/Pdm/QueryService
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Sdb/Pdm/QueryService')
-rw-r--r--Ryujinx.HLE/HOS/Services/Sdb/Pdm/QueryService/QueryPlayStatisticsManager.cs7
1 files changed, 2 insertions, 5 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Sdb/Pdm/QueryService/QueryPlayStatisticsManager.cs b/Ryujinx.HLE/HOS/Services/Sdb/Pdm/QueryService/QueryPlayStatisticsManager.cs
index 1d6cc118e..52a07d466 100644
--- a/Ryujinx.HLE/HOS/Services/Sdb/Pdm/QueryService/QueryPlayStatisticsManager.cs
+++ b/Ryujinx.HLE/HOS/Services/Sdb/Pdm/QueryService/QueryPlayStatisticsManager.cs
@@ -6,7 +6,6 @@ using System;
6using System.Collections.Generic; 6using System.Collections.Generic;
7using System.Linq; 7using System.Linq;
8using System.Runtime.CompilerServices; 8using System.Runtime.CompilerServices;
9using System.Runtime.InteropServices;
10 9
11namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService 10namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService
12{ 11{
@@ -16,8 +15,6 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService
16 15
17 internal static ResultCode GetPlayStatistics(ServiceCtx context, bool byUserId = false) 16 internal static ResultCode GetPlayStatistics(ServiceCtx context, bool byUserId = false)
18 { 17 {
19 ref readonly var controlProperty = ref context.Device.Application.ControlData.Value;
20
21 ulong inputPosition = context.Request.SendBuff[0].Position; 18 ulong inputPosition = context.Request.SendBuff[0].Position;
22 ulong inputSize = context.Request.SendBuff[0].Size; 19 ulong inputSize = context.Request.SendBuff[0].Size;
23 20
@@ -34,7 +31,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService
34 } 31 }
35 } 32 }
36 33
37 PlayLogQueryCapability queryCapability = (PlayLogQueryCapability)controlProperty.PlayLogQueryCapability; 34 PlayLogQueryCapability queryCapability = (PlayLogQueryCapability)context.Device.Processes.ActiveApplication.ApplicationControlProperties.PlayLogQueryCapability;
38 35
39 List<ulong> titleIds = new List<ulong>(); 36 List<ulong> titleIds = new List<ulong>();
40 37
@@ -48,7 +45,7 @@ namespace Ryujinx.HLE.HOS.Services.Sdb.Pdm.QueryService
48 // Check if input title ids are in the whitelist. 45 // Check if input title ids are in the whitelist.
49 foreach (ulong titleId in titleIds) 46 foreach (ulong titleId in titleIds)
50 { 47 {
51 if (!controlProperty.PlayLogQueryableApplicationId.ItemsRo.Contains(titleId)) 48 if (!context.Device.Processes.ActiveApplication.ApplicationControlProperties.PlayLogQueryableApplicationId.ItemsRo.Contains(titleId))
52 { 49 {
53 return (ResultCode)Am.ResultCode.ObjectInvalid; 50 return (ResultCode)Am.ResultCode.ObjectInvalid;
54 } 51 }