diff options
| author | mageven <62494521+mageven@users.noreply.github.com> | 2020-05-15 11:46:46 +0530 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-05-15 03:16:46 -0300 |
| commit | ba4830293e4786851d743865b1232928f9873c7e (patch) | |
| tree | 235a9d8c7b428e5ea45c5d8e60a29399c9102be0 /Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs | |
| parent | 0ff00bd6d35390eb132eecd3ba307ba4bbfdd56d (diff) | |
Refactor out Application details from Horizon (#1236)
* Initial Application refactor
* Misc typo and access modifier fixes
* Clean unused namespaces
* Address gdkchan's comments
* Move ticket reading to common method
* Change IParentalControlService to use ApplicationLoader.ControlData
Diffstat (limited to 'Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs')
| -rw-r--r-- | Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs b/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs index 6768f888..12009a26 100644 --- a/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs +++ b/Ryujinx.HLE/HOS/Services/Pctl/ParentalControlServiceFactory/IParentalControlService.cs @@ -43,8 +43,8 @@ namespace Ryujinx.HLE.HOS.Services.Pctl.ParentalControlServiceFactory _titleId = titleId; // TODO: Call nn::arp::GetApplicationControlProperty here when implemented, if it return ResultCode.Success we assign fields. - _ratingAge = Array.ConvertAll(context.Device.System.ControlData.Value.RatingAge.ToArray(), Convert.ToInt32); - _freeCommunicationEnabled = context.Device.System.ControlData.Value.ParentalControl == LibHac.Ns.ParentalControlFlagValue.FreeCommunication; + _ratingAge = Array.ConvertAll(context.Device.Application.ControlData.Value.RatingAge.ToArray(), Convert.ToInt32); + _freeCommunicationEnabled = context.Device.Application.ControlData.Value.ParentalControl == LibHac.Ns.ParentalControlFlagValue.FreeCommunication; } } |
