aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAc_K <Acoustik666@gmail.com>2020-03-25 12:28:15 +0100
committerGitHub <noreply@github.com>2020-03-25 12:28:15 +0100
commit56374c8633b68bccba774b85140241a8a4173f68 (patch)
treee58f3c888a7f63ec5d336f91b51154f5ef51099f
parent21c9c04f9f862d9c70c53dabe2f67bf1fb3d3f07 (diff)
prepo: Implement RequestImmediateTransmission and GetTransmissionStatus (#1033)
* prepo: Implement RequestImmediateTransmission and GetTransmissionStatus This implement RequestImmediateTransmission and GetTransmissionStatus of the prepo service accurately to RE. Since we don't use reports, I've explained what the calls do in the real service. Close #958 * fix comment
-rw-r--r--Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs21
1 files changed, 21 insertions, 0 deletions
diff --git a/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs b/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs
index c2857447..c6a6ac56 100644
--- a/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs
+++ b/Ryujinx.HLE/HOS/Services/Prepo/IPrepoService.cs
@@ -49,6 +49,27 @@ namespace Ryujinx.HLE.HOS.Services.Prepo
return ProcessReport(context, withUserID: true);
}
+ [Command(10200)]
+ // RequestImmediateTransmission()
+ public ResultCode RequestImmediateTransmission(ServiceCtx context)
+ {
+ // It signals an event of nn::prepo::detail::service::core::TransmissionStatusManager that requests the transmission of the report.
+ // Since we don't use reports it's fine to do nothing.
+
+ return ResultCode.Success;
+ }
+
+ [Command(10300)]
+ // GetTransmissionStatus() -> u32
+ public ResultCode GetTransmissionStatus(ServiceCtx context)
+ {
+ // It returns the transmission result of nn::prepo::detail::service::core::TransmissionStatusManager.
+ // Since we don't use reports it's fine to return ResultCode.Success.
+ context.ResponseData.Write((int)ResultCode.Success);
+
+ return ResultCode.Success;
+ }
+
private ResultCode ProcessReport(ServiceCtx context, bool withUserID)
{
UserId userId = withUserID ? context.RequestData.ReadStruct<UserId>() : new UserId();