mirror of
https://github.com/ryujinx-mirror/ryujinx.git
synced 2024-10-21 05:41:41 +00:00
e9a37ca6a8
* Implement GetCurrentIpConfigInfo This is needed by Rocket League. Also fix GetCurrentIpConfigInfo to not return ipv6 addresses * Address Ac_K comment
24 lines
522 B
C#
24 lines
522 B
C#
using System;
|
|
using System.Net;
|
|
using System.Runtime.InteropServices;
|
|
|
|
namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService.Types
|
|
{
|
|
[StructLayout(LayoutKind.Sequential)]
|
|
struct IpV4Address
|
|
{
|
|
public uint Address;
|
|
|
|
public IpV4Address(IPAddress address)
|
|
{
|
|
if (address == null)
|
|
{
|
|
Address = 0;
|
|
}
|
|
else
|
|
{
|
|
Address = BitConverter.ToUInt32(address.GetAddressBytes());
|
|
}
|
|
}
|
|
}
|
|
}
|