From cfcc360d0610c66e9b9986f7aab96f79df0da79e Mon Sep 17 00:00:00 2001 From: Ac_K Date: Thu, 21 Nov 2019 13:24:06 +0100 Subject: ldn: Implement calls of UserLocalCommunicationService (#829) * ldn: Implement calls of UserLocalCommunicationService - Implement `IUserServiceCreator: CreateUserLocalCommunicationService` according to RE. - Implement `IUserLocalCommunicationService` calls: - Every calls in this interface are layered to `NetworkInterface`. - `GetState` according to RE. - `InitializeOld`, `Initialize` and `Finalize` stubbed with the appropriate result code and some TODO according to RE. - `AttachStateChangeEvent` according to RE. * Fix var name and TODO comments * Fix review --- Ryujinx.HLE/HOS/Services/Ldn/ResultCode.cs | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 Ryujinx.HLE/HOS/Services/Ldn/ResultCode.cs (limited to 'Ryujinx.HLE/HOS/Services/Ldn/ResultCode.cs') diff --git a/Ryujinx.HLE/HOS/Services/Ldn/ResultCode.cs b/Ryujinx.HLE/HOS/Services/Ldn/ResultCode.cs new file mode 100644 index 00000000..0c9f6209 --- /dev/null +++ b/Ryujinx.HLE/HOS/Services/Ldn/ResultCode.cs @@ -0,0 +1,16 @@ +namespace Ryujinx.HLE.HOS.Services.Ldn +{ + enum ResultCode + { + ModuleId = 203, + ErrorCodeShift = 9, + + Success = 0, + + DeviceDisabled = (22 << ErrorCodeShift) | ModuleId, + InvalidState = (32 << ErrorCodeShift) | ModuleId, + Unknown1 = (48 << ErrorCodeShift) | ModuleId, + InvalidArgument = (96 << ErrorCodeShift) | ModuleId, + InvalidOjbect = (97 << ErrorCodeShift) | ModuleId, + } +} \ No newline at end of file -- cgit v1.2.3