aboutsummaryrefslogtreecommitdiff
path: root/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs
diff options
context:
space:
mode:
Diffstat (limited to 'src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs')
-rw-r--r--src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs
index f425ddf7..d390a3e6 100644
--- a/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs
+++ b/src/Ryujinx.HLE/HOS/Services/Ldn/UserServiceCreator/IUserLocalCommunicationService.cs
@@ -11,7 +11,7 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator
// TODO(Ac_K): Determine what the hardcoded unknown value is.
private const int UnknownValue = 90;
- private NetworkInterface _networkInterface;
+ private readonly NetworkInterface _networkInterface;
private int _stateChangeEventHandle = 0;
@@ -79,10 +79,10 @@ namespace Ryujinx.HLE.HOS.Services.Ldn.UserServiceCreator
public ResultCode Initialize(ServiceCtx context)
{
// TODO(Ac_K): Determine what addresses are.
- IPAddress unknownAddress1 = new IPAddress(context.RequestData.ReadUInt32());
- IPAddress unknownAddress2 = new IPAddress(context.RequestData.ReadUInt32());
+ IPAddress unknownAddress1 = new(context.RequestData.ReadUInt32());
+ IPAddress unknownAddress2 = new(context.RequestData.ReadUInt32());
return _networkInterface.Initialize(UnknownValue, version: 1, unknownAddress1, unknownAddress2);
}
}
-} \ No newline at end of file
+}