mirror of
https://git.ryujinx.app/ryubing/ryujinx.git
synced 2026-06-05 20:09:15 +00:00
Revert "Structural and Memory Safety Improvements, Analyzer Cleanup (ryubing/ryujinx!47)"
This reverts merge request !47
This commit is contained in:
@@ -155,6 +155,9 @@ namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService
|
||||
public ResultCode IsAnyInternetRequestAccepted(ServiceCtx context)
|
||||
{
|
||||
ulong position = context.Request.PtrBuff[0].Position;
|
||||
#pragma warning disable IDE0059 // Remove unnecessary value assignment
|
||||
ulong size = context.Request.PtrBuff[0].Size;
|
||||
#pragma warning restore IDE0059
|
||||
|
||||
int clientId = context.Memory.Read<int>(position);
|
||||
|
||||
|
||||
@@ -21,7 +21,9 @@ namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService
|
||||
private int _event0Handle;
|
||||
private int _event1Handle;
|
||||
|
||||
#pragma warning disable IDE0052 // Remove unread private member
|
||||
private readonly uint _version;
|
||||
#pragma warning restore IDE0052
|
||||
|
||||
public IRequest(Horizon system, uint version)
|
||||
{
|
||||
@@ -116,7 +118,9 @@ namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService
|
||||
// GetAppletInfo(u32) -> (u32, u32, u32, buffer<bytes, 6>)
|
||||
public ResultCode GetAppletInfo(ServiceCtx context)
|
||||
{
|
||||
_ = context.RequestData.ReadUInt32(); // Theme color
|
||||
#pragma warning disable IDE0059 // Remove unnecessary value assignment
|
||||
uint themeColor = context.RequestData.ReadUInt32();
|
||||
#pragma warning restore IDE0059
|
||||
|
||||
Logger.Stub?.PrintStub(LogClass.ServiceNifm);
|
||||
|
||||
|
||||
@@ -2,7 +2,7 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService.Types
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct InternetConnectionStatus
|
||||
{
|
||||
public InternetConnectionType Type;
|
||||
|
||||
@@ -4,7 +4,7 @@ using System.Runtime.InteropServices;
|
||||
|
||||
namespace Ryujinx.HLE.HOS.Services.Nifm.StaticService.Types
|
||||
{
|
||||
[StructLayout(LayoutKind.Sequential, Pack = 1)]
|
||||
[StructLayout(LayoutKind.Sequential)]
|
||||
struct IpV4Address
|
||||
{
|
||||
public uint Address;
|
||||
|
||||
Reference in New Issue
Block a user