mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-12-05 16:27:25 +00:00
e2ffa5a125
* ntc: Implement IEnsureNetworkClockAvailabilityService This PR implement a basic `IEnsureNetworkClockAvailabilityService` checked by RE. It's needed by Splatoon 2 with Guest Internet Access enabled. Game is now playable with this setting. * Update Ryujinx.HLE/HOS/Services/Nim/Ntc/StaticService/IEnsureNetworkClockAvailabilityService.cs Co-authored-by: gdkchan <gab.dark.100@gmail.com> Co-authored-by: gdkchan <gab.dark.100@gmail.com>
24 lines
No EOL
770 B
C#
24 lines
No EOL
770 B
C#
using Ryujinx.Common.Logging;
|
|
using Ryujinx.HLE.HOS.Services.Nim.Ntc.StaticService;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Nim.Ntc
|
|
{
|
|
[Service("ntc")]
|
|
class IStaticService : IpcService
|
|
{
|
|
public IStaticService(ServiceCtx context) { }
|
|
|
|
[CommandHipc(0)]
|
|
// OpenEnsureNetworkClockAvailabilityService(u64) -> object<nn::ntc::detail::service::IEnsureNetworkClockAvailabilityService>
|
|
public ResultCode CreateAsyncInterface(ServiceCtx context)
|
|
{
|
|
ulong unknown = context.RequestData.ReadUInt64();
|
|
|
|
MakeObject(context, new IEnsureNetworkClockAvailabilityService(context));
|
|
|
|
Logger.Stub?.PrintStub(LogClass.ServiceNtc, new { unknown });
|
|
|
|
return ResultCode.Success;
|
|
}
|
|
}
|
|
} |