Suppress CA1416 warnings, correct argument kind in IFileSystem

This commit is contained in:
KeatonTheBot 2025-06-01 01:56:20 -05:00
parent ef6f43825d
commit 620666909f
4 changed files with 7 additions and 1 deletions

View file

@ -1,9 +1,11 @@
using System;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
namespace Ryujinx.Cpu.Signal
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
static partial class UnixSignalHandlerRegistration
{
[StructLayout(LayoutKind.Sequential, Pack = 1)]

View file

@ -134,7 +134,7 @@ namespace Ryujinx.HLE.HOS.Services.Fs.FileSystemProxy
ref readonly Path name = ref FileSystemProxyHelper.GetSfPath(context);
using var dir = new SharedRef<LibHac.FsSrv.Sf.IDirectory>();
Result result = _fileSystem.Get.OpenDirectory(ref dir.Ref, name, mode);
Result result = _fileSystem.Get.OpenDirectory(ref dir.Ref, in name, mode);
if (result.IsSuccess())
{

View file

@ -1,7 +1,9 @@
using System;
using System.Diagnostics.CodeAnalysis;
namespace Ryujinx.Memory
{
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
public static class MemoryManagement
{
public static IntPtr Allocate(ulong size, bool forJit)

View file

@ -1,6 +1,7 @@
using Ryujinx.Common.Logging;
using System;
using System.Collections.Concurrent;
using System.Diagnostics.CodeAnalysis;
using System.Runtime.InteropServices;
using System.Runtime.Versioning;
using static Ryujinx.Memory.MemoryManagerUnixHelper;
@ -10,6 +11,7 @@ namespace Ryujinx.Memory
[SupportedOSPlatform("linux")]
[SupportedOSPlatform("macos")]
[SupportedOSPlatform("android")]
[SuppressMessage("Interoperability", "CA1416:Validate platform compatibility")]
static class MemoryManagementUnix
{
private static readonly ConcurrentDictionary<IntPtr, ulong> _allocations = new();